Class: SnipSnap::Imgly

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

Instance Method Summary collapse

Methods included from Client

included

Instance Method Details

#image_urlObject



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

def image_url
  response.last_effective_url
end

#urlObject



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

def url
  identifier = @url.match(/([^\/]+)$/)[1]
  "http://img.ly/show/large/#{identifier}"
end