Sha256: 89b26c0a4b6f7cca64d14666431f9207ab82d0084c32609c3c4c902fda72ef5e

Contents?: true

Size: 240 Bytes

Versions: 7

Compression:

Stored size: 240 Bytes

Contents

module SlideHero
  class Media
    attr_reader :url, :type
    def initialize(url, type: :video)
      @url = url
      @type = type
    end

    def compile
      %{<#{type} data-autoplay src="#{type}/#{url}"></#{type}>}
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
slide_hero-0.0.9 lib/slide_hero/media.rb
slide_hero-0.0.8 lib/slide_hero/media.rb
slide_hero-0.0.7 lib/slide_hero/media.rb
slide_hero-0.0.6 lib/slide_hero/media.rb
slide_hero-0.0.5 lib/slide_hero/media.rb
slide_hero-0.0.4 lib/slide_hero/media.rb
slide_hero-0.0.3 lib/slide_hero/media.rb