Class: Aspera::Api::Alee
- Inherits:
-
Rest::Client
- Object
- Rest::Client
- Aspera::Api::Alee
- Defined in:
- lib/aspera/api/alee.rb
Overview
Aspera License Entitlement Engine API client
Instance Attribute Summary
Attributes inherited from Rest::Client
#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::Client
#call, #cancel, #create, #delete, #oauth, #params, #read, #update
Constructor Details
#initialize(entitlement_id, customer_id, api_domain: AoC::SAAS_DOMAIN_PROD, version: 'v1') ⇒ Alee
Returns a new instance of Alee.
8 9 10 11 12 13 |
# File 'lib/aspera/api/alee.rb', line 8 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 |