Class: Mosaic::Foursquare::User
- Defined in:
- lib/mosaic/foursquare/user.rb
Instance Attribute Summary collapse
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#photo ⇒ Object
Returns the value of attribute photo.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ User
constructor
A new instance of User.
Methods inherited from Object
query, request_count, request_count=
Methods included from Utils::Helpers
Constructor Details
#initialize(options = {}) ⇒ User
Returns a new instance of User.
8 9 10 11 |
# File 'lib/mosaic/foursquare/user.rb', line 8 def initialize( = {}) super self.photo &&= Mosaic::Foursquare::Photo.new(photo) end |
Instance Attribute Details
#first_name ⇒ Object
Returns the value of attribute first_name.
6 7 8 |
# File 'lib/mosaic/foursquare/user.rb', line 6 def first_name @first_name end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/mosaic/foursquare/user.rb', line 6 def id @id end |
#last_name ⇒ Object
Returns the value of attribute last_name.
6 7 8 |
# File 'lib/mosaic/foursquare/user.rb', line 6 def last_name @last_name end |
#photo ⇒ Object
Returns the value of attribute photo.
6 7 8 |
# File 'lib/mosaic/foursquare/user.rb', line 6 def photo @photo end |