Class: Materialist::Materializer::Internals::LinkHrefMapping
- Inherits:
-
Object
- Object
- Materialist::Materializer::Internals::LinkHrefMapping
- Defined in:
- lib/materialist/materializer.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:) ⇒ LinkHrefMapping
constructor
A new instance of LinkHrefMapping.
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
#as ⇒ Object (readonly)
Returns the value of attribute as.
45 46 47 |
# File 'lib/materialist/materializer.rb', line 45 def as @as end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
45 46 47 |
# File 'lib/materialist/materializer.rb', line 45 def key @key end |