Class: Thumbnailer::WebSnapr

Inherits:
Base
  • Object
show all
Defined in:
lib/thumbnailer/sites/websnapr.rb

Instance Attribute Summary

Attributes inherited from Base

#embed_url, #small_thumb_image, #thumb_image

Instance Method Summary collapse

Constructor Details

#initialize(uri) ⇒ WebSnapr

Returns a new instance of WebSnapr.



3
4
5
6
7
# File 'lib/thumbnailer/sites/websnapr.rb', line 3

def initialize(uri)
  @small_thumb_image = "http://images.websnapr.com/?size=S&key=#{WEBSNAPR_KEY}&url=#{uri.to_s}"
  @thumb_image = "http://images.websnapr.com/?size=T&key=#{WEBSNAPR_KEY}&url=#{uri.to_s}"
  @embed_url = nil
end