Class: EmbedRb::Flickr
- Inherits:
-
Object
- Object
- EmbedRb::Flickr
- Includes:
- Base
- Defined in:
- lib/embedrb/image/embed_flickr.rb
Instance Method Summary collapse
-
#initialize(input, output, options, embeds) ⇒ Flickr
constructor
A new instance of Flickr.
Methods included from Base
#embed, #process, #shorten, #url_to_text
Constructor Details
#initialize(input, output, options, embeds) ⇒ Flickr
Returns a new instance of Flickr.
8 9 10 11 12 13 14 15 |
# File 'lib/embedrb/image/embed_flickr.rb', line 8 def initialize(input, output, , ) @input = input @output = output = = @regex = /(flickr.com\/[a-z]+\/[a-zA-Z0-9@_\-]+\/[\d]+)/mi @service = :flickr end |