Exception: Ak4r::ApiException

Inherits:
Exception
  • Object
show all
Defined in:
lib/ak4r/api_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, response) ⇒ ApiException



5
6
7
8
# File 'lib/ak4r/api_exception.rb', line 5

def initialize(code, response)
  @code = code
  @response = response
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



2
3
4
# File 'lib/ak4r/api_exception.rb', line 2

def code
  @code
end

#responseObject

Returns the value of attribute response.



3
4
5
# File 'lib/ak4r/api_exception.rb', line 3

def response
  @response
end