Sha256: 3c1a5a0b8486b22a9638e1b065528cf61755dec875813e3dcf7dc83a29e91847
Contents?: true
Size: 1.19 KB
Versions: 4
Compression:
Stored size: 1.19 KB
Contents
require 'actv/asset' module ACTV class Video < Asset attr_reader :sorCreateDtm, :urlAdr alias publish_date sorCreateDtm alias channel sub_topic def self.valid? response ACTV::VideoValidator.new(response).valid? end def keywords @keywords ||= tag_by_description 'keywords' end def duration @duration ||= tag_by_description 'duration' end def height @height ||= tag_by_description 'height' end def type @type ||= tag_by_description 'type' end def width @width ||= tag_by_description 'width' end def filesize @filesize ||= tag_by_description 'filesize' end def bitrate @bitrate ||= tag_by_description 'bitrate' end def canonicalUrl @canonical_url ||= tag_by_description 'canonicalUrl' end alias canonical_url canonicalUrl def image @image ||= image_by_name 'videoImage' end alias thumbnail image def cover image.url if image end def is_video? true end def source urlAdr.to_s.sub! /http:\/\/rodale.videodownload.worldnow.com/i, 'https://rodale.videodownload.worldnow.com' urlAdr end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
actv-2.10.9 | lib/actv/video.rb |
actv-2.10.8 | lib/actv/video.rb |
actv-2.10.7 | lib/actv/video.rb |
actv-2.10.6 | lib/actv/video.rb |