Class: Bitmovin::Encoding::Manifests::Period

Inherits:
Resource
  • Object
show all
Includes:
ChildCollection
Defined in:
lib/bitmovin/encoding/manifests/period.rb

Instance Attribute Summary collapse

Attributes inherited from Resource

#created_at, #description, #id, #modified_at, #name

Instance Method Summary collapse

Methods included from ChildCollection

included

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

#durationObject

Returns the value of attribute duration.



12
13
14
# File 'lib/bitmovin/encoding/manifests/period.rb', line 12

def duration
  @duration
end

#manifest_idObject

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

#startObject

Returns the value of attribute start.



12
13
14
# File 'lib/bitmovin/encoding/manifests/period.rb', line 12

def start
  @start
end