Exception: Resol::Service::Failure
- Inherits:
-
Interruption
- Object
- StandardError
- Interruption
- Resol::Service::Failure
- Defined in:
- lib/resol/service.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
Attributes inherited from Interruption
Instance Method Summary collapse
-
#initialize(code, data) ⇒ Failure
constructor
A new instance of Failure.
- #message ⇒ Object
Methods inherited from Interruption
Constructor Details
#initialize(code, data) ⇒ Failure
Returns a new instance of Failure.
30 31 32 33 |
# File 'lib/resol/service.rb', line 30 def initialize(code, data) self.code = code super(data) end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
28 29 30 |
# File 'lib/resol/service.rb', line 28 def code @code end |
Instance Method Details
#message ⇒ Object
35 36 37 |
# File 'lib/resol/service.rb', line 35 def data ? "#{code.inspect} => #{data.inspect}" : code.inspect end |