Class: M3Uzi::File

Inherits:
Object
  • Object
show all
Defined in:
lib/m3uzi/file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#byterangeObject

Returns the value of attribute byterange.



4
5
6
# File 'lib/m3uzi/file.rb', line 4

def byterange
  @byterange
end

#descriptionObject

Returns the value of attribute description.



4
5
6
# File 'lib/m3uzi/file.rb', line 4

def description
  @description
end

#durationObject

Returns the value of attribute duration.



4
5
6
# File 'lib/m3uzi/file.rb', line 4

def duration
  @duration
end

#pathObject

Returns the value of attribute path.



4
5
6
# File 'lib/m3uzi/file.rb', line 4

def path
  @path
end

Instance Method Details

#attribute_stringObject



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