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

User's reputation seems to be impossible to get #7

Open
faliev opened this issue May 22, 2012 · 3 comments
Open

User's reputation seems to be impossible to get #7

faliev opened this issue May 22, 2012 · 3 comments
Milestone

Comments

@faliev
Copy link

faliev commented May 22, 2012

Trying to get user's reputation and looks like reputation endpoint masks user's reputation attribute. I forked and commented out reputation method and now i can reputation integer from the user response object.

@thomas-mcdonald
Copy link
Owner

Yeah, sounds right. :(

Hoping to get a 1.1 together at some point this week, will fix this in that.

@wjgilmore
Copy link

I'm presuming this is still an issue? All I'm looking for is the reputation integer value but receiving an object in return. Inspecting this object seems to indicate no actual way to retrieve the reputation integer.

user = Serel::User.find(1414)
user.reputation
 => #<Serel::Relation:0x007f8c430e16f0 @type="reputation", @klass=Serel::Reputation, 
 @scope={:api_key=>"MY_API_KEY", :site=>:stackoverflow, :url=>"users/1414/reputation"}, 
  @qty=:plural> 

@sinetris
Copy link

sinetris commented Aug 9, 2013

This "bug" is still here.
You can get the reputation value using:

user = Serel::User.find(1414)
user[:reputation]

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

No branches or pull requests

4 participants