Class: M3Uzi::Stream

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bandwidthObject

Returns the value of attribute bandwidth.



5
6
7
# File 'lib/m3uzi/stream.rb', line 5

def bandwidth
  @bandwidth
end

#codecsObject

Returns the value of attribute codecs.



5
6
7
# File 'lib/m3uzi/stream.rb', line 5

def codecs
  @codecs
end

#pathObject

Returns the value of attribute path.



5
6
7
# File 'lib/m3uzi/stream.rb', line 5

def path
  @path
end

#program_idObject

Returns the value of attribute program_id.



5
6
7
# File 'lib/m3uzi/stream.rb', line 5

def program_id
  @program_id
end

#resolutionObject

Returns the value of attribute resolution.



5
6
7
# File 'lib/m3uzi/stream.rb', line 5

def resolution
  @resolution
end

Instance Method Details

#attribute_stringObject



7
8
9
10
11
12
13
14
# File 'lib/m3uzi/stream.rb', line 7

def attribute_string
  s = []
  s << "PROGRAM-ID=#{program_id || 1}"
  s << "BANDWIDTH=#{bandwidth}" if bandwidth
  s << "CODECS=\"#{codecs}\"" if codecs
  s << "RESOLUTION=#{resolution}" if resolution
  s.join(',')
end