Class: Bitmovin::Encoding::Manifests::HlsAudioMedia

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

Instance Attribute Summary collapse

Attributes inherited from Resource

#created_at, #description, #id, #modified_at

Instance Method Summary collapse

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 = {}) ⇒ HlsAudioMedia

Returns a new instance of HlsAudioMedia.



20
21
22
23
24
25
# File 'lib/bitmovin/encoding/manifests/hls_audio_media.rb', line 20

def initialize(manifest_id, hash = {})
  hsh = ActiveSupport::HashWithIndifferentAccess.new(underscore_hash(hash))
  @manifest_id = manifest_id
  init_instance(File.join("/v1/encoding/manifests/hls/", manifest_id, "media/audio"))
  super(hsh)
end

Instance Attribute Details

#assoc_languageObject

Returns the value of attribute assoc_language.



6
7
8
# File 'lib/bitmovin/encoding/manifests/hls_audio_media.rb', line 6

def assoc_language
  @assoc_language
end

#autoselectObject

Returns the value of attribute autoselect.



9
10
11
# File 'lib/bitmovin/encoding/manifests/hls_audio_media.rb', line 9

def autoselect
  @autoselect
end

#characteristicsObject

Returns the value of attribute characteristics.



10
11
12
# File 'lib/bitmovin/encoding/manifests/hls_audio_media.rb', line 10

def characteristics
  @characteristics
end

#drm_idObject

Returns the value of attribute drm_id.



15
16
17
# File 'lib/bitmovin/encoding/manifests/hls_audio_media.rb', line 15

def drm_id
  @drm_id
end

#encoding_idObject

Returns the value of attribute encoding_id.



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

def encoding_id
  @encoding_id
end

#end_segment_numberObject

Returns the value of attribute end_segment_number.



17
18
19
# File 'lib/bitmovin/encoding/manifests/hls_audio_media.rb', line 17

def end_segment_number
  @end_segment_number
end

#group_idObject

Returns the value of attribute group_id.



4
5
6
# File 'lib/bitmovin/encoding/manifests/hls_audio_media.rb', line 4

def group_id
  @group_id
end

#is_defaultObject

Returns the value of attribute is_default.



8
9
10
# File 'lib/bitmovin/encoding/manifests/hls_audio_media.rb', line 8

def is_default
  @is_default
end

#languageObject

Returns the value of attribute language.



5
6
7
# File 'lib/bitmovin/encoding/manifests/hls_audio_media.rb', line 5

def language
  @language
end

#manifest_idObject

Returns the value of attribute manifest_id.



3
4
5
# File 'lib/bitmovin/encoding/manifests/hls_audio_media.rb', line 3

def manifest_id
  @manifest_id
end

#muxing_idObject

Returns the value of attribute muxing_id.



14
15
16
# File 'lib/bitmovin/encoding/manifests/hls_audio_media.rb', line 14

def muxing_id
  @muxing_id
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/bitmovin/encoding/manifests/hls_audio_media.rb', line 7

def name
  @name
end

#segment_pathObject

Returns the value of attribute segment_path.



11
12
13
# File 'lib/bitmovin/encoding/manifests/hls_audio_media.rb', line 11

def segment_path
  @segment_path
end

#start_segment_numberObject

Returns the value of attribute start_segment_number.



16
17
18
# File 'lib/bitmovin/encoding/manifests/hls_audio_media.rb', line 16

def start_segment_number
  @start_segment_number
end

#stream_idObject

Returns the value of attribute stream_id.



13
14
15
# File 'lib/bitmovin/encoding/manifests/hls_audio_media.rb', line 13

def stream_id
  @stream_id
end

#uriObject

Returns the value of attribute uri.



18
19
20
# File 'lib/bitmovin/encoding/manifests/hls_audio_media.rb', line 18

def uri
  @uri
end

Instance Method Details

#ignore_fieldsObject



27
28
29
# File 'lib/bitmovin/encoding/manifests/hls_audio_media.rb', line 27

def ignore_fields
  return [:@manifest_id, :@id]
end