Class: Swiftner::Client
- Inherits:
-
Object
- Object
- Swiftner::Client
- Includes:
- HTTParty
- Defined in:
- lib/swiftner/client.rb
Overview
Initializes a new instance of the Client class.
Instance Method Summary collapse
- #check_health ⇒ Object
-
#initialize(api_key) ⇒ Client
constructor
A new instance of Client.
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_health ⇒ Object
24 25 26 |
# File 'lib/swiftner/client.rb', line 24 def check_health get("/health") end |