-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathmailtrap.rb
More file actions
30 lines (28 loc) · 1.24 KB
/
mailtrap.rb
File metadata and controls
30 lines (28 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# frozen_string_literal: true
require_relative 'mailtrap/action_mailer' if defined? ActionMailer
require_relative 'mailtrap/mail'
require_relative 'mailtrap/errors'
require_relative 'mailtrap/version'
require_relative 'mailtrap/accounts_api'
require_relative 'mailtrap/account_accesses_api'
require_relative 'mailtrap/billing_api'
require_relative 'mailtrap/email_templates_api'
require_relative 'mailtrap/contacts_api'
require_relative 'mailtrap/contact_lists_api'
require_relative 'mailtrap/contact_fields_api'
require_relative 'mailtrap/contact_imports_api'
require_relative 'mailtrap/suppressions_api'
require_relative 'mailtrap/sending_domains_api'
require_relative 'mailtrap/email_logs_api'
require_relative 'mailtrap/projects_api'
require_relative 'mailtrap/inboxes_api'
require_relative 'mailtrap/sandbox_messages_api'
require_relative 'mailtrap/sandbox_attachments_api'
require_relative 'mailtrap/stats_api'
module Mailtrap
# @!macro api_errors
# @raise [Mailtrap::Error] If the API request fails with a client or server error
# @raise [Mailtrap::AuthorizationError] If the API key is invalid
# @raise [Mailtrap::RejectionError] If the server refuses to process the request
# @raise [Mailtrap::RateLimitError] If too many requests are made
end