Class: SnipSnap::Imgly
- Inherits:
-
Object
- Object
- SnipSnap::Imgly
- Includes:
- Client
- Defined in:
- lib/snip_snap/imgly.rb
Instance Method Summary collapse
Methods included from Client
Instance Method Details
#image_url ⇒ Object
13 14 15 |
# File 'lib/snip_snap/imgly.rb', line 13 def image_url response.last_effective_url end |
#url ⇒ Object
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 |