Class: Ayadn::UserCountsObject

Inherits:
Object
  • Object
show all
Defined in:
lib/ayadn/user_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#followersObject (readonly)

Returns the value of attribute followers.



21
22
23
# File 'lib/ayadn/user_object.rb', line 21

def followers
  @followers
end

#followingObject (readonly)

Returns the value of attribute following.



21
22
23
# File 'lib/ayadn/user_object.rb', line 21

def following
  @following
end

#inputObject (readonly)

Returns the value of attribute input.



21
22
23
# File 'lib/ayadn/user_object.rb', line 21

def input
  @input
end

#postsObject (readonly)

Returns the value of attribute posts.



21
22
23
# File 'lib/ayadn/user_object.rb', line 21

def posts
  @posts
end

#starsObject (readonly)

Returns the value of attribute stars.



21
22
23
# File 'lib/ayadn/user_object.rb', line 21

def stars
  @stars
end