Class: Thumbnailer::TwitPic
- Defined in:
- lib/thumbnailer/sites/twitpic.rb
Instance Attribute Summary
Attributes inherited from Base
#embed_url, #small_thumb_image, #thumb_image
Instance Method Summary collapse
-
#initialize(uri) ⇒ TwitPic
constructor
A new instance of TwitPic.
Constructor Details
#initialize(uri) ⇒ TwitPic
Returns a new instance of TwitPic.
3 4 5 6 7 8 |
# File 'lib/thumbnailer/sites/twitpic.rb', line 3 def initialize(uri) pic_id = uri.path.split('/')[1] @embed_url = uri.to_s @thumb_image = "http://twitpic.com/show/thumb/#{pic_id}" @small_thumb_image = "http://twitpic.com/show/mini/#{pic_id}" end |