Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `losses=' #35

Closed
Theminijohn opened this issue Feb 4, 2015 · 4 comments · Fixed by #41
Closed

undefined method `losses=' #35

Theminijohn opened this issue Feb 4, 2015 · 4 comments · Fixed by #41

Comments

@Theminijohn
Copy link

I'm trying to get the League information of a summoner:

client = Lol::Client.new Settings.rito.api_key, {region: self.server}

client.league.get(20964624)

which gives me an output :

[3] pry(main)> client.league.get(20964624)
NoMethodError: undefined method `losses=' for #<Lol::LeagueEntry:0x007fd6edda9578>
from /Users/theminijohn/.rvm/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/ruby-lol-0.9.19/lib/lol/model.rb:15:in `block in initialize'

I tried getting the League Entry, but couldn't get it working, how can I access the LeagueEntry and make a request?

What am I missing?

@intinig
Copy link
Contributor

intinig commented Feb 5, 2015

It's a problem with a yet not implemented change on the API.

I'll allocate some time to fix this tomorrow and push a new version out.

@Theminijohn
Copy link
Author

Would be awesome :) Thanks a lot !

@intinig
Copy link
Contributor

intinig commented Feb 9, 2015

Hello,

the just released gem 0.9.19.1 still doesn't fix this problem. Hopefully it will be fixed today.

@Theminijohn
Copy link
Author

Thanks for the Heads up !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants