Class: Ayadn::UserCountsObject
Instance Attribute Summary collapse
-
#followers ⇒ Object
readonly
Returns the value of attribute followers.
-
#following ⇒ Object
readonly
Returns the value of attribute following.
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#posts ⇒ Object
readonly
Returns the value of attribute posts.
-
#stars ⇒ Object
readonly
Returns the value of attribute stars.
Instance Method Summary collapse
-
#initialize(hash) ⇒ UserCountsObject
constructor
A new instance of UserCountsObject.
Constructor Details
#initialize(hash) ⇒ UserCountsObject
Returns a new instance of UserCountsObject.
23 24 25 26 27 28 29 |
# File 'lib/ayadn/user_object.rb', line 23 def initialize hash @input = hash["counts"] @following = @input["following"] @posts = @input["posts"] @followers = @input["followers"] @stars = @input["stars"] end |
Instance Attribute Details
#followers ⇒ Object (readonly)
Returns the value of attribute followers.
21 22 23 |
# File 'lib/ayadn/user_object.rb', line 21 def followers @followers end |
#following ⇒ Object (readonly)
Returns the value of attribute following.
21 22 23 |
# File 'lib/ayadn/user_object.rb', line 21 def following @following end |
#input ⇒ Object (readonly)
Returns the value of attribute input.
21 22 23 |
# File 'lib/ayadn/user_object.rb', line 21 def input @input end |
#posts ⇒ Object (readonly)
Returns the value of attribute posts.
21 22 23 |
# File 'lib/ayadn/user_object.rb', line 21 def posts @posts end |
#stars ⇒ Object (readonly)
Returns the value of attribute stars.
21 22 23 |
# File 'lib/ayadn/user_object.rb', line 21 def stars @stars end |