class Bitmovin::Encoding::Manifests::HlsVariantStreamList

Attributes

manifest_id[RW]

Public Class Methods

new(manifest_id) click to toggle source
# File lib/bitmovin/encoding/manifests/hls_variant_stream_list.rb, line 5
def initialize(manifest_id)
  @manifest_id = manifest_id
  init_instance(File.join("/v1/encoding/manifests/", manifest_id, "streams"))
  #super(hsh)
end

Public Instance Methods

build(hash = {}) click to toggle source
# File lib/bitmovin/encoding/manifests/hls_variant_stream_list.rb, line 17
def build(hash = {})
  HlsVariantStream.new(@manifest_id, hash)
end
list(limit = 100, offset = 0) click to toggle source
# File lib/bitmovin/encoding/manifests/hls_variant_stream_list.rb, line 11
def list(limit = 100, offset = 0)
  path = File.join("/v1/encoding/manifests/hls", @manifest_id, self.class.resource_path)
  response = Bitmovin.client.get(path, { limit: limit, offset: offset })
  result(response)['items'].map { |item| self.class.klass.new(@manifest_id, item) }
end