Sha256: c0dee262fe496fa7edcfce7e83798388b833127a742ddf9276222d9a4e78eb7c

Contents?: true

Size: 824 Bytes

Versions: 8

Compression:

Stored size: 824 Bytes

Contents

class Zencoder
  class Account < Zencoder

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

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

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

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

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
zencoder-2.2.2 lib/zencoder/account.rb
zencoder-2.2.1 lib/zencoder/account.rb
zencoder-2.2.0 lib/zencoder/account.rb
zencoder-2.1.15 lib/zencoder/account.rb
zencoder-2.1.14 lib/zencoder/account.rb
zencoder-2.1.13 lib/zencoder/account.rb
zencoder-2.1.12 lib/zencoder/account.rb
zencoder-2.1.11 lib/zencoder/account.rb