Skip to content

Commit cda32ec

Browse files
committed
Fix documentation
1 parent e81d19c commit cda32ec

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ Contact management:
192192
General:
193193

194194
- Templates CRUD – [`email_templates_api.rb`](examples/email_templates_api.rb)
195-
- Billing – [`billing_api.rb`](examples/billing_api.rb)
196195
- Action Mailer – [`action_mailer.rb`](examples/action_mailer.rb)
197196
- Accounts API – [`accounts_api.rb`](examples/accounts_api.rb)
197+
- Billing API – [`billing_api.rb`](examples/billing_api.rb)
198198

199199
## Migration guide v1 → v2
200200

lib/mailtrap/billing_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class BillingAPI
88
include BaseAPI
99

1010
# Get current billing cycle usage
11-
# @return <BillingUsage> Billing usage data for account
11+
# @return [BillingUsage] Billing usage data for account
1212
# @!macro api_errors
1313
def usage
1414
response = client.get("/api/accounts/#{account_id}/billing/usage")

spec/mailtrap/billing_api_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
let(:account_id) { ENV.fetch('MAILTRAP_ACCOUNT_ID', 1_111_111) }
77
let(:client) { Mailtrap::Client.new(api_key: ENV.fetch('MAILTRAP_API_KEY', 'local-api-key')) }
88

9-
describe '#get' do
9+
describe '#usage' do
1010
subject(:usage) { billing.usage }
1111

1212
it 'maps response data to Billing object' do

0 commit comments

Comments
 (0)