Class: DHS::Record::Chainable::Link
- Inherits:
-
Object
- Object
- DHS::Record::Chainable::Link
- Defined in:
- lib/dhs/concerns/record/chainable.rb
Overview
Link: A part of a chain
Direct Known Subclasses
ErrorHandling, IgnoredError, Include, Option, Pagination, Parameter, Reference
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
- #[](parameter) ⇒ Object
-
#initialize(data = nil) ⇒ Link
constructor
A new instance of Link.
Constructor Details
#initialize(data = nil) ⇒ Link
Returns a new instance of Link.
87 88 89 |
# File 'lib/dhs/concerns/record/chainable.rb', line 87 def initialize(data = nil) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
85 86 87 |
# File 'lib/dhs/concerns/record/chainable.rb', line 85 def data @data end |
Instance Method Details
#[](parameter) ⇒ Object
91 92 93 |
# File 'lib/dhs/concerns/record/chainable.rb', line 91 def [](parameter) @data[parameter] end |