Sha256: 322a5cc4f433c891c47f70c3d388574df0cf025ca66df4555e8a5443763b6dbd

Contents?: true

Size: 395 Bytes

Versions: 1

Compression:

Stored size: 395 Bytes

Contents

module AssetHostCore
  class BrightcoveVideo < Video
    attr_accessible :length

    def attrs
      {
        "data-assethost"  => "BrightcoveVideo", # The native client class
        "data-ah-videoid" => self.videoid
      }
    end

    def as_json
      {
        :class    => "BrightcoveVideo",
        :videoid  => self.videoid,
        :length   => self.length
      }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asset_host_core-2.0.0.beta app/models/asset_host_core/brightcove_video.rb