Class: TorgMailApiClient::Client
- Inherits:
-
Weary::Client
- Object
- Weary::Client
- TorgMailApiClient::Client
- Defined in:
- lib/torg_mail_api_client/client.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(format = nil) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(format = nil) ⇒ Client
Returns a new instance of Client.
5 6 7 |
# File 'lib/torg_mail_api_client/client.rb', line 5 def initialize(format = nil) headers("Authorization" => TorgMailApiClient.config.auth_key) end |
Class Method Details
.config ⇒ Object
10 11 12 |
# File 'lib/torg_mail_api_client/client.rb', line 10 def config TorgMailApiClient.config end |
.format ⇒ Object
14 15 16 |
# File 'lib/torg_mail_api_client/client.rb', line 14 def format config.format end |