lib/bitmovin/encoding/encodings/thumbnails/thumbnail.rb in bitmovin-ruby-0.5.0 vs lib/bitmovin/encoding/encodings/thumbnails/thumbnail.rb in bitmovin-ruby-0.7.0
- old
+ new
@@ -1,10 +1,10 @@
module Bitmovin::Encoding::Encodings
class Thumbnail < Bitmovin::Resource
def initialize(encoding_id, stream_id, hash = {})
@errors = []
- self.class.init(File.join('/v1/encoding/encodings', encoding_id, 'streams', stream_id, 'thumbnails'))
+ init_instance(File.join('/v1/encoding/encodings', encoding_id, 'streams', stream_id, 'thumbnails'))
@encoding_id = encoding_id
@stream_id = stream_id
hsh = ActiveSupport::HashWithIndifferentAccess.new(underscore_hash(hash))
\ No newline at end of file