Class: EmbedRb::Ustream
- Inherits:
-
Object
- Object
- EmbedRb::Ustream
- Includes:
- Base
- Defined in:
- lib/embedrb/video/embed_ustream.rb
Instance Method Summary collapse
-
#initialize(input, output, options, embeds) ⇒ Ustream
constructor
A new instance of Ustream.
Methods included from Base
#embed, #process, #shorten, #url_to_text
Constructor Details
#initialize(input, output, options, embeds) ⇒ Ustream
Returns a new instance of Ustream.
8 9 10 11 12 13 14 15 |
# File 'lib/embedrb/video/embed_ustream.rb', line 8 def initialize(input, output, , ) @input = input @output = output = = @regex = /(ustream.tv\/([a-z\/0-9%]*))/mi @service = :ustream end |