Class: ROM::Mapper::Attribute::EmbeddedCollection

Inherits:
ROM::Mapper::Attribute show all
Defined in:
lib/rom/mapper/attribute.rb

Instance Method Summary collapse

Methods inherited from ROM::Mapper::Attribute

build, #key?, #mapping, #rename, #tuple_key, #type

Instance Method Details

#headerObject

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.



44
45
46
# File 'lib/rom/mapper/attribute.rb', line 44

def header
  options.fetch(:header)
end

#to_astObject

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.



38
39
40
# File 'lib/rom/mapper/attribute.rb', line 38

def to_ast
  s(:key_transform, name, name, s(:map, node))
end