Class: Payhub::Client::HealthResource

Inherits:
Object
  • Object
show all
Defined in:
lib/payhub/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ HealthResource

Returns a new instance of HealthResource.



165
166
167
# File 'lib/payhub/client.rb', line 165

def initialize(client)
  @c = client
end

Instance Method Details

#checkObject



169
170
171
# File 'lib/payhub/client.rb', line 169

def check
  Health.from_raw(@c.request(:get, "/v1/health"))
end