Exception: EbanxApiException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ebanx/exception/ebanx_api_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response, http_code) ⇒ EbanxApiException

Returns a new instance of EbanxApiException.



4
5
6
7
8
# File 'lib/ebanx/exception/ebanx_api_exception.rb', line 4

def initialize(message, response, http_code)
  super(message)
  @response = response
  @http_code = http_code
end

Instance Attribute Details

#http_codeObject

Returns the value of attribute http_code.



2
3
4
# File 'lib/ebanx/exception/ebanx_api_exception.rb', line 2

def http_code
  @http_code
end

#responseObject

Returns the value of attribute response.



2
3
4
# File 'lib/ebanx/exception/ebanx_api_exception.rb', line 2

def response
  @response
end