Class: Io::Flow::V0::Clients::Healthchecks
- Inherits:
-
Object
- Object
- Io::Flow::V0::Clients::Healthchecks
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Method Summary collapse
- #get_healthcheck ⇒ Object
-
#initialize(client) ⇒ Healthchecks
constructor
A new instance of Healthchecks.
Constructor Details
#initialize(client) ⇒ Healthchecks
Returns a new instance of Healthchecks.
4670 4671 4672 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4670 def initialize(client) @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client) end |
Instance Method Details
#get_healthcheck ⇒ Object
4674 4675 4676 4677 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4674 def get_healthcheck r = @client.request("/_internal_/healthcheck").get ::Io::Flow::V0::Models::Healthcheck.new(r) end |