Class: Mosaic::Foursquare::User

Inherits:
Object
  • Object
show all
Defined in:
lib/mosaic/foursquare/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Object

query, request_count, request_count=

Methods included from Utils::Helpers

#underscore_string

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(options = {})
  super
  self.photo &&= Mosaic::Foursquare::Photo.new(photo)
end

Instance Attribute Details

#first_nameObject

Returns the value of attribute first_name.



6
7
8
# File 'lib/mosaic/foursquare/user.rb', line 6

def first_name
  @first_name
end

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/mosaic/foursquare/user.rb', line 6

def id
  @id
end

#last_nameObject

Returns the value of attribute last_name.



6
7
8
# File 'lib/mosaic/foursquare/user.rb', line 6

def last_name
  @last_name
end

#photoObject

Returns the value of attribute photo.



6
7
8
# File 'lib/mosaic/foursquare/user.rb', line 6

def photo
  @photo
end