Class: Materialist::Materializer::Internals::LinkHrefMapping

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, as:) ⇒ LinkHrefMapping

Returns a new instance of LinkHrefMapping.



40
41
42
43
# File 'lib/materialist/materializer.rb', line 40

def initialize(key:, as:)
  @key = key
  @as = as
end

Instance Attribute Details

#asObject (readonly)

Returns the value of attribute as.



45
46
47
# File 'lib/materialist/materializer.rb', line 45

def as
  @as
end

#keyObject (readonly)

Returns the value of attribute key.



45
46
47
# File 'lib/materialist/materializer.rb', line 45

def key
  @key
end