Class: LHS::Record::Chainable::ErrorHandling
- Inherits:
-
Link
- Object
- Link
- LHS::Record::Chainable::ErrorHandling
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
Instance Method Details
#class ⇒ Object
119
120
121
|
# File 'lib/lhs/concerns/record/chainable.rb', line 119
def class
@data.keys.first
end
|
#handler ⇒ Object
115
116
117
|
# File 'lib/lhs/concerns/record/chainable.rb', line 115
def handler
@data.values.first
end
|
#to_a ⇒ Object
123
124
125
|
# File 'lib/lhs/concerns/record/chainable.rb', line 123
def to_a
[self.class, handler]
end
|