Exception: Resol::Service::Interruption

Inherits:
StandardError
  • Object
show all
Defined in:
lib/resol/service.rb

Direct Known Subclasses

Failure, Success

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Interruption

Returns a new instance of Interruption.



13
14
15
16
# File 'lib/resol/service.rb', line 13

def initialize(data)
  self.data = data
  super
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



11
12
13
# File 'lib/resol/service.rb', line 11

def data
  @data
end

Instance Method Details

#inspectObject



18
19
20
# File 'lib/resol/service.rb', line 18

def inspect
  "#{self.class.name}: #{message}"
end

#messageObject



22
23
24
# File 'lib/resol/service.rb', line 22

def message
  data.inspect
end