Class: PriorityPayoutGateway::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/priority_payout_gateway/error.rb

Defined Under Namespace

Classes: AuthenticationError, InvalidResponseFormat, MissingParameters, NoApiKey, NoData, Timeout

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message, response) ⇒ Error



12
13
14
15
16
# File 'lib/priority_payout_gateway/error.rb', line 12

def initialize( code, message, response)
  @code = response_code
  @message = response_message
  @response = response
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



10
11
12
# File 'lib/priority_payout_gateway/error.rb', line 10

def code
  @code
end

#messageObject (readonly)

Returns the value of attribute message.



10
11
12
# File 'lib/priority_payout_gateway/error.rb', line 10

def message
  @message
end

#responseObject (readonly)

Returns the value of attribute response.



10
11
12
# File 'lib/priority_payout_gateway/error.rb', line 10

def response
  @response
end