module Quovo

Constants

ForbiddenError
HttpError
NotFoundError
ParamsError
QuovoError
RateLimitError
StubNotFoundError
VERSION

Public Class Methods

enable_logging() click to toggle source
# File lib/quovo.rb, line 66
def self.enable_logging
  Quovo.hook do |path, method, params, status_code, response, elapsed_time, scope|
    if Quovo.config.debug
      log = [
        '',
        'Quovo Action:',
        "path: #{path}",
        "method: #{method}",
        "params: #{params.inspect}",
        "status_code: #{status_code}",
        "response: #{response.inspect}",
        "elapsed_time: #{elapsed_time}s",
        "scope: #{scope.inspect}",
        ''
      ]
      puts log.join("\n    ")
    end
  end
end
inspect() click to toggle source
# File lib/quovo.rb, line 62
def self.inspect
  config.inspect
end