class Promisepay::Tool
Resource for the Tools API
Public Class Methods
new(client)
click to toggle source
# File lib/promisepay/tool.rb, line 4 def initialize(client) @client = client end
Public Instance Methods
health_check()
click to toggle source
Displays a health check of the PromisePay service.
@see reference.promisepay.com/#health-check
@return [Hash]
# File lib/promisepay/tool.rb, line 13 def health_check JSON.parse(@client.get('status').body) end