Exception: Qrdot::ApiError

Inherits:
Error
  • Object
show all
Defined in:
lib/qrdot.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message, status) ⇒ ApiError

Returns a new instance of ApiError.



16
17
18
19
20
# File 'lib/qrdot.rb', line 16

def initialize(code, message, status)
  super(message)
  @code = code
  @status = status
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



14
15
16
# File 'lib/qrdot.rb', line 14

def code
  @code
end

#statusObject (readonly)

Returns the value of attribute status.



14
15
16
# File 'lib/qrdot.rb', line 14

def status
  @status
end