Class: Materialist::Materializer::Internals::LinkMapping

Inherits:
Object
  • Object
show all
Defined in:
lib/materialist/materializer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#keyObject (readonly)

Returns the value of attribute key.



36
37
38
# File 'lib/materialist/materializer.rb', line 36

def key
  @key
end

#mappingObject (readonly)

Returns the value of attribute mapping.



36
37
38
# File 'lib/materialist/materializer.rb', line 36

def mapping
  @mapping
end