Class: Seamus::File::Audio
- Inherits:
-
File
- Object
- File
- Seamus::File::Audio
- Includes:
- AudioInspector, AudioProcessor, StandardAdditions
- Defined in:
- lib/seamus/file/audio.rb
Instance Method Summary collapse
-
#initialize(*args, &block) ⇒ Audio
constructor
A new instance of Audio.
- #inspection_attributes ⇒ Object
Methods included from StandardAdditions
#[], #add_inspection_attributes, #attributes, #content_type, #md5, #md5_base64_encoded, #md5_digest, #size
Methods included from AudioProcessor
Methods included from AudioInspector
Constructor Details
#initialize(*args, &block) ⇒ Audio
Returns a new instance of Audio.
7 8 9 10 |
# File 'lib/seamus/file/audio.rb', line 7 def initialize(*args, &block) super(*args, &block) create_methods_for inspector, :except => [:filename, :path, :full_filename, :raw_response, :raw_metadata, :ffmpeg_binary, :ffmpeg_binary=] end |
Instance Method Details
#inspection_attributes ⇒ Object
12 13 14 |
# File 'lib/seamus/file/audio.rb', line 12 def inspection_attributes @inspection_attributes ||= [:valid?, :invalid?, :unknown_format?, :unreadable_file?, :audio?, :video?, :container, :raw_duration, :duration, :bitrate, :bitrate_units, :audio_bit_rate, :audio_stream, :audio_codec, :audio_sample_rate, :audio_sample_units, :audio_channels_string, :audio_channels, :audio_stream_id, :video_stream, :video_stream_id, :video_codec, :video_colorspace, :width, :height, :resolution, :fps] + standard_attributes end |