Class: R2mp3::Inspector
- Inherits:
-
Object
- Object
- R2mp3::Inspector
- Defined in:
- lib/r2mp3/inspector.rb
Instance Attribute Summary collapse
-
#bitrate ⇒ Object
readonly
Returns the value of attribute bitrate.
-
#channel_mode ⇒ Object
readonly
Returns the value of attribute channel_mode.
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#layer ⇒ Object
readonly
Returns the value of attribute layer.
-
#length ⇒ Object
readonly
Returns the value of attribute length.
-
#mpeg_version ⇒ Object
readonly
Returns the value of attribute mpeg_version.
-
#samplerate ⇒ Object
readonly
Returns the value of attribute samplerate.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
-
#tag1 ⇒ Object
readonly
Returns the value of attribute tag1.
-
#tag1_parsed ⇒ Object
readonly
Returns the value of attribute tag1_parsed.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#vbr ⇒ Object
readonly
Returns the value of attribute vbr.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Inspector
constructor
A new instance of Inspector.
Constructor Details
#initialize(options = {}) ⇒ Inspector
Returns a new instance of Inspector.
6 7 8 9 10 11 |
# File 'lib/r2mp3/inspector.rb', line 6 def initialize(={}) @file = [:file] raise InspectorError::InputFileRequired if @file.nil? @type = file_extension info end |
Instance Attribute Details
#bitrate ⇒ Object (readonly)
Returns the value of attribute bitrate.
4 5 6 |
# File 'lib/r2mp3/inspector.rb', line 4 def bitrate @bitrate end |
#channel_mode ⇒ Object (readonly)
Returns the value of attribute channel_mode.
4 5 6 |
# File 'lib/r2mp3/inspector.rb', line 4 def channel_mode @channel_mode end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
4 5 6 |
# File 'lib/r2mp3/inspector.rb', line 4 def filename @filename end |
#header ⇒ Object (readonly)
Returns the value of attribute header.
4 5 6 |
# File 'lib/r2mp3/inspector.rb', line 4 def header @header end |
#layer ⇒ Object (readonly)
Returns the value of attribute layer.
4 5 6 |
# File 'lib/r2mp3/inspector.rb', line 4 def layer @layer end |
#length ⇒ Object (readonly)
Returns the value of attribute length.
4 5 6 |
# File 'lib/r2mp3/inspector.rb', line 4 def length @length end |
#mpeg_version ⇒ Object (readonly)
Returns the value of attribute mpeg_version.
4 5 6 |
# File 'lib/r2mp3/inspector.rb', line 4 def mpeg_version @mpeg_version end |
#samplerate ⇒ Object (readonly)
Returns the value of attribute samplerate.
4 5 6 |
# File 'lib/r2mp3/inspector.rb', line 4 def samplerate @samplerate end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
4 5 6 |
# File 'lib/r2mp3/inspector.rb', line 4 def tag @tag end |
#tag1 ⇒ Object (readonly)
Returns the value of attribute tag1.
4 5 6 |
# File 'lib/r2mp3/inspector.rb', line 4 def tag1 @tag1 end |
#tag1_parsed ⇒ Object (readonly)
Returns the value of attribute tag1_parsed.
4 5 6 |
# File 'lib/r2mp3/inspector.rb', line 4 def tag1_parsed @tag1_parsed end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'lib/r2mp3/inspector.rb', line 4 def type @type end |
#vbr ⇒ Object (readonly)
Returns the value of attribute vbr.
4 5 6 |
# File 'lib/r2mp3/inspector.rb', line 4 def vbr @vbr end |