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 Method Summary collapse

Methods inherited from Link

#[], #initialize, #to_hash

Constructor Details

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

Instance Method Details

#classObject



74
75
76
# File 'lib/lhs/concerns/record/chainable.rb', line 74

def class
  @hash.keys.first
end

#handlerObject



70
71
72
# File 'lib/lhs/concerns/record/chainable.rb', line 70

def handler
  @hash.values.first
end