Class: M3Uzi::Stream
- Inherits:
-
Object
- Object
- M3Uzi::Stream
- Defined in:
- lib/m3uzi/stream.rb
Instance Attribute Summary collapse
-
#bandwidth ⇒ Object
Returns the value of attribute bandwidth.
-
#codecs ⇒ Object
Returns the value of attribute codecs.
-
#path ⇒ Object
Returns the value of attribute path.
-
#program_id ⇒ Object
Returns the value of attribute program_id.
-
#resolution ⇒ Object
Returns the value of attribute resolution.
Instance Method Summary collapse
Instance Attribute Details
#bandwidth ⇒ Object
Returns the value of attribute bandwidth.
5 6 7 |
# File 'lib/m3uzi/stream.rb', line 5 def bandwidth @bandwidth end |
#codecs ⇒ Object
Returns the value of attribute codecs.
5 6 7 |
# File 'lib/m3uzi/stream.rb', line 5 def codecs @codecs end |
#path ⇒ Object
Returns the value of attribute path.
5 6 7 |
# File 'lib/m3uzi/stream.rb', line 5 def path @path end |
#program_id ⇒ Object
Returns the value of attribute program_id.
5 6 7 |
# File 'lib/m3uzi/stream.rb', line 5 def program_id @program_id end |
#resolution ⇒ Object
Returns the value of attribute resolution.
5 6 7 |
# File 'lib/m3uzi/stream.rb', line 5 def resolution @resolution end |
Instance Method Details
#attribute_string ⇒ Object
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 |