Class: Aspera::Api::Alee
Constant Summary
Constants inherited from Rest
Rest::ENTITY_NOT_FOUND, Rest::MAX_ITEMS, Rest::MAX_PAGES, Rest::MIME_JSON, Rest::MIME_TEXT, Rest::MIME_WWW
Instance Attribute Summary
Attributes inherited from Rest
#auth_params, #base_url, #headers
Instance Method Summary collapse
-
#initialize(entitlement_id, customer_id, api_domain: AoC::SAAS_DOMAIN_PROD, version: 'v1') ⇒ Alee
constructor
A new instance of Alee.
Methods inherited from Rest
basic_authorization, build_uri, #call, #cancel, #create, #delete, h_to_query_array, io_http_session, #lookup_by_name, #oauth, #params, parse_header, php_style, query_to_h, #read, remote_certificate_chain, start_http_session, #update
Constructor Details
#initialize(entitlement_id, customer_id, api_domain: AoC::SAAS_DOMAIN_PROD, version: 'v1') ⇒ Alee
Returns a new instance of Alee.
7 8 9 10 11 12 |
# File 'lib/aspera/api/alee.rb', line 7 def initialize(entitlement_id, customer_id, api_domain: AoC::SAAS_DOMAIN_PROD, version: 'v1') super( base_url: "https://api.#{api_domain}/metering/#{version}", headers: {'X-Aspera-Entitlement-Authorization' => Rest.(entitlement_id, customer_id)} ) end |