Exception: Rik::API::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/rik/api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fault, fault_code) ⇒ Error

Returns a new instance of Error.



12
13
14
15
# File 'lib/rik/api.rb', line 12

def initialize(fault, fault_code)
  @fault = fault
  @fault_code = fault_code
end

Instance Attribute Details

#faultObject

Returns the value of attribute fault.



10
11
12
# File 'lib/rik/api.rb', line 10

def fault
  @fault
end

#fault_codeObject

Returns the value of attribute fault_code.



10
11
12
# File 'lib/rik/api.rb', line 10

def fault_code
  @fault_code
end