Class: ROM::Firebase::MapperCompiler

Inherits:
MapperCompiler
  • Object
show all
Defined in:
lib/rom/firebase/mapper_compiler.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ MapperCompiler

Returns a new instance of MapperCompiler.



7
8
9
10
11
12
13
# File 'lib/rom/firebase/mapper_compiler.rb', line 7

def initialize(*args)
  super
  cache = Cache.new
  @struct_compiler = StructCompiler.new(cache: cache)
  @cache = cache.namespaced(:mappers)
  @mapper_options = self.class.mapper_options
end