Class: Sendmux::Sending::Client
- Inherits:
-
Object
- Object
- Sendmux::Sending::Client
- Defined in:
- lib/sendmux/sending/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
- #emails ⇒ Object
-
#initialize(api_key:, base_url: DEFAULT_BASE_URL, retry_options: nil) ⇒ Client
constructor
A new instance of Client.
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/sending/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/sending/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/sending/client.rb', line 16 def configuration @configuration end |