Class: Materialist::Materializer::Internals::LinkMapping
- Inherits:
-
Object
- Object
- Materialist::Materializer::Internals::LinkMapping
- Defined in:
- lib/materialist/materializer/internals/link_mapping.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.
5 6 7 8 |
# File 'lib/materialist/materializer/internals/link_mapping.rb', line 5 def initialize(key:) @key = key @mapping = [] end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
10 11 12 |
# File 'lib/materialist/materializer/internals/link_mapping.rb', line 10 def key @key end |
#mapping ⇒ Object (readonly)
Returns the value of attribute mapping.
10 11 12 |
# File 'lib/materialist/materializer/internals/link_mapping.rb', line 10 def mapping @mapping end |