Class: Mailtrap::BillingAPI
- Inherits:
-
Object
- Object
- Mailtrap::BillingAPI
- Includes:
- BaseAPI
- Defined in:
- lib/mailtrap/billing_api.rb
Instance Attribute Summary
Attributes included from BaseAPI
Instance Method Summary collapse
-
#usage ⇒ BillingUsage
Get current billing cycle usage.
Methods included from BaseAPI
Instance Method Details
#usage ⇒ BillingUsage
Get current billing cycle usage
13 14 15 16 |
# File 'lib/mailtrap/billing_api.rb', line 13 def usage response = client.get("/api/accounts/#{account_id}/billing/usage") build_entity(response, BillingUsage) end |