Class: Io::Flow::V0::Clients::Healthchecks

Inherits:
Object
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Healthchecks

Returns a new instance of Healthchecks.



7121
7122
7123
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7121

def initialize(client)
  @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client)
end

Instance Method Details

#get_healthcheckObject



7125
7126
7127
7128
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7125

def get_healthcheck
  r = @client.request("/_internal_/healthcheck").get
  ::Io::Flow::V0::Models::Healthcheck.new(r)
end