Sha256: 6e1a33ca92d869a62c75c80707b2e7cb16d4311fd74b7b2cd5ecb380c8e0e025

Contents?: true

Size: 736 Bytes

Versions: 11

Compression:

Stored size: 736 Bytes

Contents

class Zencoder
  class Account < Zencoder

    def self.create(params={}, options={})
      HTTP.post("#{base_url}/account", encode(params, options[:format]), options)
    end

    def self.details(options={})
      params = {:api_key  => options.delete(:api_key) || api_key}
      HTTP.get("#{base_url}/account", merge_params(options, params))
    end

    def self.integration(options={})
      params = {:api_key  => options.delete(:api_key) || api_key}
      HTTP.get("#{base_url}/account/integration", merge_params(options, params))
    end

    def self.live(options={})
      params = {:api_key  => options.delete(:api_key) || api_key}
      HTTP.get("#{base_url}/account/live", merge_params(options, params))
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
zencoder-2.1.10 lib/zencoder/account.rb
zencoder-2.1.9 lib/zencoder/account.rb
zencoder-2.1.8 lib/zencoder/account.rb
zencoder-2.1.7 lib/zencoder/account.rb
zencoder-2.1.6 lib/zencoder/account.rb
zencoder-2.1.5 lib/zencoder/account.rb
zencoder-2.1.4 lib/zencoder/account.rb
zencoder-2.1.3 lib/zencoder/account.rb
zencoder-2.1.2 lib/zencoder/account.rb
zencoder-2.1.1 lib/zencoder/account.rb
zencoder-2.1.0 lib/zencoder/account.rb