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.



4155
4156
4157
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4155

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

Instance Method Details

#get_healthcheckObject



4159
4160
4161
4162
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4159

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