Class: DHS::Record::Chainable::ErrorHandling
- Inherits:
-
Link
- Object
- Link
- DHS::Record::Chainable::ErrorHandling
show all
- Defined in:
- lib/dhs/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
125
126
127
|
# File 'lib/dhs/concerns/record/chainable.rb', line 125
def class
@data.keys.first
end
|
#handler ⇒ Object
121
122
123
|
# File 'lib/dhs/concerns/record/chainable.rb', line 121
def handler
@data.values.first
end
|
#to_a ⇒ Object
129
130
131
|
# File 'lib/dhs/concerns/record/chainable.rb', line 129
def to_a
[self.class, handler]
end
|