Class: LHS::Record::Chainable::ErrorHandling

Inherits:
Link
  • Object
show all
Defined in:
lib/lhs/concerns/record/chainable.rb

Overview

ErrorHandling: Catch and resolve errors when resolving the chain

Instance Attribute Summary

Attributes inherited from Link

#data

Instance Method Summary collapse

Methods inherited from Link

#[], #initialize

Constructor Details

This class inherits a constructor from LHS::Record::Chainable::Link

Instance Method Details

#classObject



121
122
123
# File 'lib/lhs/concerns/record/chainable.rb', line 121

def class
  @data.keys.first
end

#handlerObject



117
118
119
# File 'lib/lhs/concerns/record/chainable.rb', line 117

def handler
  @data.values.first
end

#to_aObject



125
126
127
# File 'lib/lhs/concerns/record/chainable.rb', line 125

def to_a
  [self.class, handler]
end