Class: TorgMailApiClient::Client

Inherits:
Weary::Client
  • Object
show all
Defined in:
lib/torg_mail_api_client/client.rb

Class Method Summary collapse

Instance Method Summary collapse

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

.configObject



10
11
12
# File 'lib/torg_mail_api_client/client.rb', line 10

def config
  TorgMailApiClient.config
end

.formatObject



14
15
16
# File 'lib/torg_mail_api_client/client.rb', line 14

def format
  config.format
end