class EmbedRb::Ustream

Public Class Methods

new(input, output, options, embeds) click to toggle source
# File lib/embedrb/video/embed_ustream.rb, line 8
def initialize(input, output, options, embeds)
  @input = input
  @output = output
  @embeds = embeds
  @options = options
  @regex = /(ustream.tv\/([a-z\/0-9%]*))/mi
  @service = :ustream
end

Private Instance Methods

render(url) click to toggle source
# File lib/embedrb/video/embed_ustream.rb, line 18
    def render(url)
      dims = EmbedRb.get_dimensions(@options)
      return <<EOF
      <div class="ejs-embed ejs-ustream">
        <iframe src="//www.#{url}" height="#{dims[:height]}" width="#{dims[:width]} ></iframe>
      </div>
EOF
    end