lib/m3u8/media_item.rb in m3u8-0.4.0 vs lib/m3u8/media_item.rb in m3u8-0.5.0
- old
+ new
@@ -1,20 +1,20 @@
module M3u8
# MediaItem represents a set of EXT-X-MEDIA attributes
class MediaItem
- attr_accessor :type, :group, :language, :assoc_language, :name,
+ attr_accessor :type, :group_id, :language, :assoc_language, :name,
:autoselect, :default, :uri, :forced
def initialize(params = {})
params.each do |key, value|
instance_variable_set("@#{key}", value)
end
end
def to_s
attributes = [type_format,
- group_format,
+ group_id_format,
language_format,
assoc_language_format,
name_format,
autoselect_format,
default_format,
@@ -27,11 +27,11 @@
def type_format
"TYPE=#{type}"
end
- def group_format
- %(GROUP-ID="#{group}")
+ def group_id_format
+ %(GROUP-ID="#{group_id}")
end
def language_format
return if language.nil?
%(LANGUAGE="#{language}")