Class: MastercardCoreSdk::ErrorResponse
- Inherits:
-
Object
- Object
- MastercardCoreSdk::ErrorResponse
- Defined in:
- lib/mastercard_core_sdk/models/error_response.rb
Overview
Defines attributes for details of error response.
Instance Attribute Summary collapse
-
#error_source ⇒ Object
Returns the value of attribute error_source.
-
#message ⇒ Object
Returns the value of attribute message.
-
#response ⇒ Object
Returns the value of attribute response.
-
#response_code ⇒ Object
Returns the value of attribute response_code.
Instance Method Summary collapse
-
#initialize(args) ⇒ ErrorResponse
constructor
A new instance of ErrorResponse.
Constructor Details
#initialize(args) ⇒ ErrorResponse
Returns a new instance of ErrorResponse.
7 8 9 10 11 |
# File 'lib/mastercard_core_sdk/models/error_response.rb', line 7 def initialize(args) args.each do |k,v| instance_variable_set("@#{k}",v) unless v.nil? end end |
Instance Attribute Details
#error_source ⇒ Object
Returns the value of attribute error_source.
5 6 7 |
# File 'lib/mastercard_core_sdk/models/error_response.rb', line 5 def error_source @error_source end |
#message ⇒ Object
Returns the value of attribute message.
5 6 7 |
# File 'lib/mastercard_core_sdk/models/error_response.rb', line 5 def @message end |
#response ⇒ Object
Returns the value of attribute response.
5 6 7 |
# File 'lib/mastercard_core_sdk/models/error_response.rb', line 5 def response @response end |
#response_code ⇒ Object
Returns the value of attribute response_code.
5 6 7 |
# File 'lib/mastercard_core_sdk/models/error_response.rb', line 5 def response_code @response_code end |