Class: Gowalla::Top10
- Inherits:
-
Object
- Object
- Gowalla::Top10
- Defined in:
- lib/gowalla/top_10.rb
Instance Attribute Summary collapse
-
#checkins_count ⇒ Object
Returns the value of attribute checkins_count.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#image_url ⇒ Object
Returns the value of attribute image_url.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Top10
constructor
A new instance of Top10.
- #user ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ Top10
Returns a new instance of Top10.
5 6 7 8 9 10 11 |
# File 'lib/gowalla/top_10.rb', line 5 def initialize(data={}) @checkins_count = data['checkins_count'] @first_name = data['first_name'] @last_name = data['last_name'] @url = data['url'] @image_url = data['image_url'] end |
Instance Attribute Details
#checkins_count ⇒ Object
Returns the value of attribute checkins_count.
3 4 5 |
# File 'lib/gowalla/top_10.rb', line 3 def checkins_count @checkins_count end |
#first_name ⇒ Object
Returns the value of attribute first_name.
3 4 5 |
# File 'lib/gowalla/top_10.rb', line 3 def first_name @first_name end |
#image_url ⇒ Object
Returns the value of attribute image_url.
3 4 5 |
# File 'lib/gowalla/top_10.rb', line 3 def image_url @image_url end |
#last_name ⇒ Object
Returns the value of attribute last_name.
3 4 5 |
# File 'lib/gowalla/top_10.rb', line 3 def last_name @last_name end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/gowalla/top_10.rb', line 3 def url @url end |