Class: Foursquare::Photo

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

Instance Method Summary collapse

Constructor Details

#initialize(foursquare, json) ⇒ Photo

Returns a new instance of Photo.



3
4
5
# File 'lib/foursquare/photo.rb', line 3

def initialize(foursquare, json)
  @foursquare, @json = foursquare, json
end

Instance Method Details

#created_atObject



15
16
17
# File 'lib/foursquare/photo.rb', line 15

def created_at
  @json["createdAt"]
end

#idObject



7
8
9
# File 'lib/foursquare/photo.rb', line 7

def id
  @json["id"]
end

#nameObject



11
12
13
# File 'lib/foursquare/photo.rb', line 11

def name
  @json["name"]
end

#sizesObject



23
24
25
# File 'lib/foursquare/photo.rb', line 23

def sizes
  @json["sizes"]
end

#urlObject



19
20
21
# File 'lib/foursquare/photo.rb', line 19

def url
  @json["url"]
end