class Afterpay::Error

Error class with accessor to methods Afterpay error returns the same format containing `errorId`, `errorCode`, `message`

Attributes

code[RW]
id[RW]
message[RW]

Public Class Methods

new(response) click to toggle source
# File lib/afterpay/error.rb, line 10
def initialize(response)
  @id = response[:errorId]
  @code = response[:errorCode]
  @message = response[:message]
end