Class: PlatformAPI::EnterpriseAccountUsageDaily
- Inherits:
-
Object
- Object
- PlatformAPI::EnterpriseAccountUsageDaily
- Defined in:
- lib/platform-api/client.rb
Overview
Usage for an enterprise account at a daily resolution.
Instance Method Summary collapse
-
#info(enterprise_account_id) ⇒ Object
Retrieves usage for an enterprise account for a range of days.
-
#initialize(client) ⇒ EnterpriseAccountUsageDaily
constructor
A new instance of EnterpriseAccountUsageDaily.
Constructor Details
#initialize(client) ⇒ EnterpriseAccountUsageDaily
Returns a new instance of EnterpriseAccountUsageDaily.
1792 1793 1794 |
# File 'lib/platform-api/client.rb', line 1792 def initialize(client) @client = client end |
Instance Method Details
#info(enterprise_account_id) ⇒ Object
Retrieves usage for an enterprise account for a range of days. Start and end dates can be specified as query parameters using the date format, YYYY-MM-DD format. For example, '/enterprise-accounts/example-account/usage/daily?start=2019-01-01&end=2019-01-31' specifies all days in January for 2019.
1799 1800 1801 |
# File 'lib/platform-api/client.rb', line 1799 def info(enterprise_account_id) @client.enterprise_account_usage_daily.info(enterprise_account_id) end |