Sha256: 686935fabbfba1c03811841f20f2fb9d1f5cec7119399dda3d80b8af63863862
Contents?: true
Size: 797 Bytes
Versions: 4
Compression:
Stored size: 797 Bytes
Contents
module Animoto module Support module Coverable # Setter for cover, which makes this visual the cover for the video. Only # one image or piece of footage in a manifest can be declared the cover. # # @param [Boolean] bool true if this visual should be the cover def cover= bool @cover = bool end # Returns true if this visual is the cover. # # @return [Boolean] whether or not this visual is the cover def cover? @cover end # Returns a representation of this visual as a Hash. # # @return [Hash{String=>Object}] this visual as a Hash def to_hash hash = super rescue {} hash['cover'] = cover? unless @cover.nil? hash end end end end
Version data entries
4 entries across 4 versions & 1 rubygems