Class: SnipSnap::Flickr
- Inherits:
-
Object
- Object
- SnipSnap::Flickr
- Includes:
- Client
- Defined in:
- lib/snip_snap/flickr.rb
Instance Method Summary collapse
Methods included from Client
Instance Method Details
#identifier ⇒ Object
8 9 10 11 |
# File 'lib/snip_snap/flickr.rb', line 8 def identifier url = response.last_effective_url url.match(/([^\/]+)\/$/)[1] end |
#image_url ⇒ Object
17 18 19 |
# File 'lib/snip_snap/flickr.rb', line 17 def image_url photo.medium.url end |
#photo ⇒ Object
13 14 15 |
# File 'lib/snip_snap/flickr.rb', line 13 def photo Fleakr::Objects::Photo.find_by_id(identifier) end |