Sha256: d02fc9c14eb39fc6cfaf96af4ef12d17cca0a0e7235ac855a8ca4215359ea4d9
Contents?: true
Size: 712 Bytes
Versions: 8
Compression:
Stored size: 712 Bytes
Contents
module Animoto 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] this visual as a Hash def to_hash hash = super rescue {} hash['cover'] = cover? unless @cover.nil? hash end end end
Version data entries
8 entries across 8 versions & 1 rubygems