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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, as:) ⇒ LinkHrefMapping

Returns a new instance of LinkHrefMapping.



5
6
7
8
# File 'lib/materialist/materializer/internals/link_href_mapping.rb', line 5

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

Instance Attribute Details

#asObject (readonly)

Returns the value of attribute as.



10
11
12
# File 'lib/materialist/materializer/internals/link_href_mapping.rb', line 10

def as
  @as
end

#keyObject (readonly)

Returns the value of attribute key.



10
11
12
# File 'lib/materialist/materializer/internals/link_href_mapping.rb', line 10

def key
  @key
end