Class: EmbedRb::BasicVideo
- Inherits:
-
Object
- Object
- EmbedRb::BasicVideo
- Includes:
- Base
- Defined in:
- lib/embedrb/video/embed_video.rb
Instance Method Summary collapse
-
#initialize(input, output, options, embeds) ⇒ BasicVideo
constructor
A new instance of BasicVideo.
Methods included from Base
#embed, #process, #shorten, #url_to_text
Constructor Details
#initialize(input, output, options, embeds) ⇒ BasicVideo
8 9 10 11 12 13 14 15 |
# File 'lib/embedrb/video/embed_video.rb', line 8 def initialize(input, output, , ) @input = input @output = output = = @regex = /((?:https?):\/\/\S*\.(?:ogv|webm|mp4))/mi @service = :video end |