Class: SnipSnap::Flickr

Inherits:
Object
  • Object
show all
Includes:
Client
Defined in:
lib/snip_snap/flickr.rb

Instance Method Summary collapse

Methods included from Client

included

Instance Method Details

#identifierObject



8
9
10
11
# File 'lib/snip_snap/flickr.rb', line 8

def identifier
  url = response.last_effective_url
  url.match(/([^\/]+)\/$/)[1]
end

#image_urlObject



17
18
19
# File 'lib/snip_snap/flickr.rb', line 17

def image_url
  photo.medium.url
end

#photoObject



13
14
15
# File 'lib/snip_snap/flickr.rb', line 13

def photo
  Fleakr::Objects::Photo.find_by_id(identifier)
end