Class: Aspera::Api::Alee
Constant Summary
Constants inherited from Rest
Rest::ENTITY_NOT_FOUND, Rest::JSON_DECODE
Instance Attribute Summary
Attributes inherited from Rest
Instance Method Summary collapse
-
#initialize(entitlement_id, customer_id, api_domain: SAAS_DOMAIN_PROD, version: 'v1') ⇒ Alee
constructor
A new instance of Alee.
Methods inherited from Rest
array_params, array_params?, basic_token, build_uri, #call, #cancel, #create, decode_query, #delete, io_http_session, #lookup_by_name, #oauth, #params, parse_header, #read, remote_certificate_chain, set_parameters, start_http_session, #update, user_agent
Constructor Details
#initialize(entitlement_id, customer_id, api_domain: SAAS_DOMAIN_PROD, version: 'v1') ⇒ Alee
Returns a new instance of Alee.
17 18 19 20 21 22 |
# File 'lib/aspera/api/aoc.rb', line 17 def initialize(entitlement_id, customer_id, api_domain: SAAS_DOMAIN_PROD, version: 'v1') super( base_url: "https://api.#{api_domain}/metering/#{version}", headers: {'X-Aspera-Entitlement-Authorization' => Rest.basic_token(entitlement_id, customer_id)} ) end |