Class: M3Uzi::File
- Inherits:
-
Object
- Object
- M3Uzi::File
- Defined in:
- lib/m3uzi/file.rb
Instance Attribute Summary collapse
-
#byterange ⇒ Object
Returns the value of attribute byterange.
-
#description ⇒ Object
Returns the value of attribute description.
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
Instance Attribute Details
#byterange ⇒ Object
Returns the value of attribute byterange.
4 5 6 |
# File 'lib/m3uzi/file.rb', line 4 def byterange @byterange end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/m3uzi/file.rb', line 4 def description @description end |
#duration ⇒ Object
Returns the value of attribute duration.
4 5 6 |
# File 'lib/m3uzi/file.rb', line 4 def duration @duration end |
#path ⇒ Object
Returns the value of attribute path.
4 5 6 |
# File 'lib/m3uzi/file.rb', line 4 def path @path end |
Instance Method Details
#attribute_string ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/m3uzi/file.rb', line 6 def attribute_string if duration.kind_of?(Float) "#{sprintf('%0.3f',duration)},#{description}" else "#{duration},#{description}" end end |