Class: ROM::Repository::MapperBuilder Private

Inherits:
Object
  • Object
show all
Extended by:
Dry::Core::Cache
Defined in:
lib/rom/repository/mapper_builder.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMapperBuilder

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of MapperBuilder.



13
14
15
# File 'lib/rom/repository/mapper_builder.rb', line 13

def initialize
  @header_builder = HeaderBuilder.new
end

Instance Attribute Details

#header_builderObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



11
12
13
# File 'lib/rom/repository/mapper_builder.rb', line 11

def header_builder
  @header_builder
end

Instance Method Details

#call(ast) ⇒ Object Also known as: []

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



17
18
19
# File 'lib/rom/repository/mapper_builder.rb', line 17

def call(ast)
  fetch_or_store(ast) { Mapper.build(header_builder[ast]) }
end