class M3U8::SessionDataItem
- M3U8::SessionDataItem
- Reference
- Object
Overview
SessionDataItem represents a set of EXT-X-SESSION-DATA attributes
Included Modules
- M3U8::Concern
Extended Modules
- M3U8::Concern
Defined in:
m3u8/session_data_item.crConstructors
-
.new(params : NamedTuple = NamedTuple.new)
options = { data_id: "com.test.movie.title", value: "Test", uri: "http://test", language: "en", } SessionDataItem.new(options)
- .new(data_id : Nil | String = nil, value : Nil | String = nil, uri : Nil | String = nil, language : Nil | String = nil)
Class Method Summary
-
.parse(text)
text = %(#EXT-X-SESSION-DATA:DATA-ID="com.test.movie.title",VALUE="Test",URI="http://test",LANGUAGE="en") SessionDataItem.parse(text) # => #<M3U8::SessionDataItem......>
Instance Method Summary
- #data_id : String | Nil
- #data_id=(data_id : String | Nil)
- #language : String | Nil
- #language=(language : String | Nil)
-
#to_s
options = { data_id: "com.test.movie.title", value: "Test", uri: "http://test", language: "en", } SessionDataItem.new(options).to_s # => %(#EXT-X-SESSION-DATA:DATA-ID="com.test.movie.title",) \ %(VALUE="Test",URI="http://test",LANGUAGE="en")
- #uri : String | Nil
- #uri=(uri : String | Nil)
- #value : String | Nil
- #value=(value : String | Nil)
Constructor Detail
def self.new(params : NamedTuple = NamedTuple.new)
#
options = {
data_id: "com.test.movie.title",
value: "Test",
uri: "http://test",
language: "en",
}
SessionDataItem.new(options)
def self.new(data_id : Nil | String = nil, value : Nil | String = nil, uri : Nil | String = nil, language : Nil | String = nil)
#
SessionDataItem.new
Class Method Detail
def self.parse(text)
#
text = %(#EXT-X-SESSION-DATA:DATA-ID="com.test.movie.title",VALUE="Test",URI="http://test",LANGUAGE="en")
SessionDataItem.parse(text) # => #<M3U8::SessionDataItem......>
Instance Method Detail
def to_s
#
options = {
data_id: "com.test.movie.title",
value: "Test",
uri: "http://test",
language: "en",
}
SessionDataItem.new(options).to_s
# => %(#EXT-X-SESSION-DATA:DATA-ID="com.test.movie.title",) \
%(VALUE="Test",URI="http://test",LANGUAGE="en")