Sha256: 7f3ff041c7c30749c4ccd88f1302db35f04052cc8023f12d82c8a73c129ec65a
Contents?: true
Size: 686 Bytes
Versions: 9
Compression:
Stored size: 686 Bytes
Contents
module Druid module Elements class Media < Element def autoplay? attribute(:autoplay) end def has_controls? attribute(:controls) end def paused? attribute(:paused) end def duration duration = attribute(:duration) return duration.to_f if duration end def volume volume = attribute(:volume) return volume.to_i if volume end def ended? attribute(:ended) end def seeking? attribute(:seeking) end def loop? attribute(:loop) end def muted? attribute(:muted) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems