lib/m3uzi/stream.rb in m3uzi-0.1.2 vs lib/m3uzi/stream.rb in m3uzi-0.1.3

- old
+ new

@@ -1,9 +1,17 @@ class M3Uzi class Stream - attr_accessor :bandwidth, :program_id, :codecs, :resolution + attr_accessor :path, :bandwidth, :program_id, :codecs, :resolution + 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 end end