Sha256: 4f9ccf50010882bbbf4e4f15b81c599d0651485fdeca51310f99f4986c2ccb41
Contents?: true
Size: 517 Bytes
Versions: 9
Compression:
Stored size: 517 Bytes
Contents
module M3u8 # KeyItem represents a set of EXT-X-SESSION-KEY attributes class SessionKeyItem include Encryptable extend M3u8 def initialize(params = {}) options = convert_key_names(params) options.merge(params).each do |key, value| instance_variable_set("@#{key}", value) end end def self.parse(text) attributes = parse_attributes(text) SessionKeyItem.new(attributes) end def to_s "#EXT-X-SESSION-KEY:#{attributes_to_s}" end end end
Version data entries
9 entries across 9 versions & 1 rubygems