Class: Materialist::Materializer::Internals::LinkMapping
- Inherits:
-
Object
- Object
- Materialist::Materializer::Internals::LinkMapping
- Defined in:
- lib/materialist/materializer.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#mapping ⇒ Object
readonly
Returns the value of attribute mapping.
Instance Method Summary collapse
-
#initialize(key:) ⇒ LinkMapping
constructor
A new instance of LinkMapping.
Constructor Details
#initialize(key:) ⇒ LinkMapping
Returns a new instance of LinkMapping.
31 32 33 34 |
# File 'lib/materialist/materializer.rb', line 31 def initialize(key:) @key = key @mapping = [] end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
36 37 38 |
# File 'lib/materialist/materializer.rb', line 36 def key @key end |
#mapping ⇒ Object (readonly)
Returns the value of attribute mapping.
36 37 38 |
# File 'lib/materialist/materializer.rb', line 36 def mapping @mapping end |