Class: MastercardCoreSdk::ErrorResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/mastercard_core_sdk/models/error_response.rb

Overview

Defines attributes for details of error response.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_sourceObject

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

#messageObject

Returns the value of attribute message.



5
6
7
# File 'lib/mastercard_core_sdk/models/error_response.rb', line 5

def message
  @message
end

#responseObject

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_codeObject

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