Class: Materialist::Materializer::Internals::FieldMapping
- Inherits:
-
Object
- Object
- Materialist::Materializer::Internals::FieldMapping
- Defined in:
- lib/materialist/materializer/internals/field_mapping.rb
Instance Attribute Summary collapse
-
#as ⇒ Object
readonly
Returns the value of attribute as.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key:, as:) ⇒ FieldMapping
constructor
A new instance of FieldMapping.
Constructor Details
#initialize(key:, as:) ⇒ FieldMapping
Returns a new instance of FieldMapping.
5 6 7 8 |
# File 'lib/materialist/materializer/internals/field_mapping.rb', line 5 def initialize(key:, as:) @key = key @as = as end |
Instance Attribute Details
#as ⇒ Object (readonly)
Returns the value of attribute as.
10 11 12 |
# File 'lib/materialist/materializer/internals/field_mapping.rb', line 10 def as @as end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
10 11 12 |
# File 'lib/materialist/materializer/internals/field_mapping.rb', line 10 def key @key end |