Class: M3u8::KeyItem
- Inherits:
-
Object
- Object
- M3u8::KeyItem
- Extended by:
- M3u8
- Includes:
- Encryptable, Serializable
- Defined in:
- lib/m3u8/key_item.rb
Overview
KeyItem represents a set of EXT-X-KEY attributes
Constant Summary
Constants included from M3u8
Instance Attribute Summary
Attributes included from Encryptable
#iv, #key_format, #key_format_versions, #method, #uri
Class Method Summary collapse
-
.parse(text) ⇒ KeyItem
Parse an EXT-X-KEY tag.
Instance Method Summary collapse
-
#to_s ⇒ String
Render as an m3u8 EXT-X-KEY tag.
Methods included from M3u8
initialize_with_byterange, parse_attributes, parse_float, parse_int, parse_yes_no, to_yes_no
Methods included from Serializable
#as_json, serialize, #to_h, #to_json
Methods included from Encryptable
#attributes_to_s, #convert_key_names, included, #initialize
Methods included from AttributeFormatter
#boolean_format, #decimal_format, #quoted_format, #unquoted_format
Class Method Details
Instance Method Details
#to_s ⇒ String
Render as an m3u8 EXT-X-KEY tag.
20 21 22 |
# File 'lib/m3u8/key_item.rb', line 20 def to_s "#EXT-X-KEY:#{attributes_to_s}" end |