Class: Bitmovin::Encoding::Manifests::Period
- Includes:
- ChildCollection
- Defined in:
- lib/bitmovin/encoding/manifests/period.rb
Instance Attribute Summary collapse
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#manifest_id ⇒ Object
Returns the value of attribute manifest_id.
-
#start ⇒ Object
Returns the value of attribute start.
Attributes inherited from Resource
#created_at, #description, #id, #modified_at, #name
Instance Method Summary collapse
-
#initialize(manifest_id, hash = {}) ⇒ Period
constructor
A new instance of Period.
Methods included from ChildCollection
Methods inherited from Resource
#delete!, find, init, #init_instance, #inspect, list, #persisted?, #save!
Methods included from Helpers
#camelize_hash, #hash_to_struct, result, #result, #underscore_hash
Constructor Details
#initialize(manifest_id, hash = {}) ⇒ Period
Returns a new instance of Period.
5 6 7 8 9 10 11 |
# File 'lib/bitmovin/encoding/manifests/period.rb', line 5 def initialize(manifest_id, hash = {}) init_instance(File.join("/v1/encoding/manifests/dash/", manifest_id, "periods")) @manifest_id = manifest_id super(hash) @video_adaptationsets = nil @audio_adaptationsets = nil end |
Instance Attribute Details
#duration ⇒ Object
Returns the value of attribute duration.
12 13 14 |
# File 'lib/bitmovin/encoding/manifests/period.rb', line 12 def duration @duration end |
#manifest_id ⇒ Object
Returns the value of attribute manifest_id.
12 13 14 |
# File 'lib/bitmovin/encoding/manifests/period.rb', line 12 def manifest_id @manifest_id end |
#start ⇒ Object
Returns the value of attribute start.
12 13 14 |
# File 'lib/bitmovin/encoding/manifests/period.rb', line 12 def start @start end |