Class: Sendmux::Management::Client
- Inherits:
-
Object
- Object
- Sendmux::Management::Client
- Defined in:
- lib/sendmux/management/client.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
readonly
Returns the value of attribute api_client.
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
Instance Method Summary collapse
- #billing ⇒ Object
- #domain_filters ⇒ Object
- #domains ⇒ Object
- #emails ⇒ Object
- #inboxes ⇒ Object
-
#initialize(api_key:, base_url: DEFAULT_BASE_URL, retry_options: nil) ⇒ Client
constructor
A new instance of Client.
- #mailbox_filters ⇒ Object
- #mailboxes ⇒ Object
- #sending_accounts ⇒ Object
- #webhooks ⇒ Object
Constructor Details
#initialize(api_key:, base_url: DEFAULT_BASE_URL, retry_options: nil) ⇒ Client
Returns a new instance of Client.
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/sendmux/management/client.rb', line 18 def initialize(api_key:, base_url: DEFAULT_BASE_URL, retry_options: nil) @configuration = Sendmux::Core::Auth.configure_bearer( Generated::Configuration.new, api_key, Sendmux::Core::ApiKeySurface::ROOT, base_url: base_url ) Sendmux::Core::Retry.configure(@configuration, ) @api_client = ApiClient.new(@configuration) end |
Instance Attribute Details
#api_client ⇒ Object (readonly)
Returns the value of attribute api_client.
16 17 18 |
# File 'lib/sendmux/management/client.rb', line 16 def api_client @api_client end |
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
16 17 18 |
# File 'lib/sendmux/management/client.rb', line 16 def configuration @configuration end |
Instance Method Details
#billing ⇒ Object
29 30 31 |
# File 'lib/sendmux/management/client.rb', line 29 def billing @billing ||= Generated::BillingApi.new(@api_client) end |
#domain_filters ⇒ Object
33 34 35 |
# File 'lib/sendmux/management/client.rb', line 33 def domain_filters @domain_filters ||= Generated::DomainFiltersApi.new(@api_client) end |
#domains ⇒ Object
37 38 39 |
# File 'lib/sendmux/management/client.rb', line 37 def domains @domains ||= Generated::DomainsApi.new(@api_client) end |
#emails ⇒ Object
41 42 43 |
# File 'lib/sendmux/management/client.rb', line 41 def emails @emails ||= Generated::EmailsApi.new(@api_client) end |
#inboxes ⇒ Object
45 46 47 |
# File 'lib/sendmux/management/client.rb', line 45 def inboxes @inboxes ||= Generated::InboxesApi.new(@api_client) end |
#mailbox_filters ⇒ Object
49 50 51 |
# File 'lib/sendmux/management/client.rb', line 49 def mailbox_filters @mailbox_filters ||= Generated::MailboxFiltersApi.new(@api_client) end |
#mailboxes ⇒ Object
53 54 55 |
# File 'lib/sendmux/management/client.rb', line 53 def mailboxes @mailboxes ||= Generated::MailboxesApi.new(@api_client) end |
#sending_accounts ⇒ Object
57 58 59 |
# File 'lib/sendmux/management/client.rb', line 57 def sending_accounts @sending_accounts ||= Generated::SendingAccountsApi.new(@api_client) end |
#webhooks ⇒ Object
61 62 63 |
# File 'lib/sendmux/management/client.rb', line 61 def webhooks @webhooks ||= Generated::WebhooksApi.new(@api_client) end |