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.



6370
6371
6372
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6370

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

Instance Method Details

#get_healthcheckObject



6374
6375
6376
6377
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6374

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