Sha256: 753f3a97855329bca738c984155fbd8ee42fb0460fdab2ac44e7c32754e87ba0
Contents?: true
Size: 765 Bytes
Versions: 3
Compression:
Stored size: 765 Bytes
Contents
module FormatParser class Video NATURE = :video attr_accessor :width_px attr_accessor :height_px # Type of the file (e.g :mp3) attr_accessor :format # Duration of the media object (be it audio or video) in seconds, # as a Float attr_accessor :media_duration_seconds # Duration of the media object in addressable frames or samples, # as an Integer attr_accessor :media_duration_frames # If a parser wants to provide any extra information to the caller # it can be placed here attr_accessor :intrinsics # Only permits assignments via defined accessors def initialize(**attributes) attributes.map { |(k, v)| public_send("#{k}=", v) } end def nature NATURE end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
format_parser-0.3.1 | lib/video.rb |
format_parser-0.3.0 | lib/video.rb |
format_parser-0.2.0 | lib/video.rb |