class Pin::APIError

Attributes

code[R]
description[R]
error[R]
response[R]

Public Class Methods

new(response) click to toggle source
# File lib/pin-payments.rb, line 16
def initialize(response)
  @code = response.code
  @error = response['error']
  @description = response['description']
  @response = response
end

Public Instance Methods

to_s() click to toggle source
# File lib/pin-payments.rb, line 23
def to_s
  "#{@code} #{@error} #{@description}"
end