lib/bitmovin/encoding/manifests/manifest_resource.rb in bitmovin-ruby-0.5.0 vs lib/bitmovin/encoding/manifests/manifest_resource.rb in bitmovin-ruby-0.7.0
- old
+ new
@@ -1,10 +1,10 @@
module Bitmovin::Encoding::Manifests
class ManifestResource < Bitmovin::Resource
def initialize(hash = {})
hsh = ActiveSupport::HashWithIndifferentAccess.new(underscore_hash(hash))
muxing_type = self.class.name.demodulize.gsub(/(.*)Muxing/, '\1').downcase
- self.class.init(File.join("/v1/encoding/manifests/", encoding_id, "muxings", muxing_type))
+ init_instance(File.join("/v1/encoding/manifests/", encoding_id, "muxings", muxing_type))
super(hsh)
@outputs = (hsh[:outputs] || []).map do |output|
Bitmovin::Encoding::Encodings::StreamOutput.new(encoding_id, @id, output)
end
@streams = (hsh[:streams] || []).map do |stream|