Sha256: 68c778f4d85e99f910ee1965956d6846e52f1436a858d78e8e751d659ffd6744

Contents?: true

Size: 462 Bytes

Versions: 11

Compression:

Stored size: 462 Bytes

Contents

module Bitmovin
  class InputResource < Resource
    def analyze!(options)
      path = File.join("/v1/encoding/inputs/", @id, "analysis")
      response = Bitmovin.client.post(path) do |req|
        req.body = camelize_hash(options)
      end
      result = (JSON.parse(response.body))['data']['result']
      Bitmovin::Encoding::Inputs::AnalysisTask.new(self, result['id'])
    end

    def analyses
      Encoding::Inputs::Analysis.new(@id)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bitmovin-ruby-0.9.1 lib/bitmovin/input_resource.rb
bitmovin-ruby-0.9.0 lib/bitmovin/input_resource.rb
bitmovin-ruby-0.8.1 lib/bitmovin/input_resource.rb
bitmovin-ruby-0.8.0 lib/bitmovin/input_resource.rb
bitmovin-ruby-0.7.0 lib/bitmovin/input_resource.rb
bitmovin-ruby-0.5.0 lib/bitmovin/input_resource.rb
bitmovin-ruby-0.4.0 lib/bitmovin/input_resource.rb
bitmovin-ruby-0.3.0 lib/bitmovin/input_resource.rb
bitmovin-ruby-0.2.0 lib/bitmovin/input_resource.rb
bitmovin-ruby-0.1.1 lib/bitmovin/input_resource.rb
bitmovin-ruby-0.1.0 lib/bitmovin/input_resource.rb