Class: Swiftner::Client

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/swiftner/client.rb

Overview

Initializes a new instance of the Client class.

Instance Method Summary collapse

Constructor Details

#initialize(api_key) ⇒ Client

Returns a new instance of Client.



13
14
15
# File 'lib/swiftner/client.rb', line 13

def initialize(api_key)
  self.class.headers "Api_Key_Header" => api_key
end

Instance Method Details

#check_healthObject



24
25
26
# File 'lib/swiftner/client.rb', line 24

def check_health
  get("/health")
end