Sha256: 65a052680433397b1c502d84a42ec1da2d26e7d800b514596953f0991240acdf

Contents?: true

Size: 706 Bytes

Versions: 11

Compression:

Stored size: 706 Bytes

Contents

module Bitmovin::Encoding::Inputs
  class Analysis
    include Bitmovin::Helpers
    def initialize(input_id)
      @id = input_id
    end

    def list(limit = 100, offset = 0)
      path = File.join("/v1/encoding/inputs/", @id, "analysis")
      response = Bitmovin.client.get(path, limit: limit, offset: offset)
      result(response).map do |result|
        subtask_hash_to_object(result)
      end
    end

    def find(id)
      path = File.join("/v1/encoding/inputs", @id, "analysis", id)
      response = Bitmovin.client.get(path)
      subtask_hash_to_object(result(response))
    end

    private
    def subtask_hash_to_object(hash)
      hash_to_struct(underscore_hash(hash))
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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