Class: Foursquare::Photo
- Inherits:
-
Object
- Object
- Foursquare::Photo
- Defined in:
- lib/foursquare/photo.rb
Instance Method Summary collapse
- #created_at ⇒ Object
- #id ⇒ Object
-
#initialize(foursquare, json) ⇒ Photo
constructor
A new instance of Photo.
- #name ⇒ Object
- #sizes ⇒ Object
- #url ⇒ Object
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_at ⇒ Object
15 16 17 |
# File 'lib/foursquare/photo.rb', line 15 def created_at @json["createdAt"] end |
#id ⇒ Object
7 8 9 |
# File 'lib/foursquare/photo.rb', line 7 def id @json["id"] end |
#name ⇒ Object
11 12 13 |
# File 'lib/foursquare/photo.rb', line 11 def name @json["name"] end |
#sizes ⇒ Object
23 24 25 |
# File 'lib/foursquare/photo.rb', line 23 def sizes @json["sizes"] end |
#url ⇒ Object
19 20 21 |
# File 'lib/foursquare/photo.rb', line 19 def url @json["url"] end |