Class: EmbedRb::Ted

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/embedrb/video/embed_ted.rb

Instance Method Summary collapse

Methods included from Base

#embed, #process, #shorten

Constructor Details

#initialize(input, output, options, embeds) ⇒ Ted

Returns a new instance of Ted.



8
9
10
11
12
13
14
15
# File 'lib/embedrb/video/embed_ted.rb', line 8

def initialize(input, output, options, embeds)
  @input = input
  @output = output
  @embeds = embeds
  @options = options
  @regex = /(ted.com\/talks\/([a-zA-Z0-9_]+))/mi
  @service = :ted
end