class AMA::Entity::Mapper
Entrypoint class which provides basic user access
Attributes
engine[W]
Public Class Methods
[](klass)
click to toggle source
# File lib/ama-entity-mapper.rb, line 36 def [](klass) engine.registry[klass] end
engine()
click to toggle source
# File lib/ama-entity-mapper.rb, line 16 def engine @engine ||= Engine.new(Type::Registry.new.with_default_types) end
map(input, *types, **options)
click to toggle source
# File lib/ama-entity-mapper.rb, line 28 def map(input, *types, **options) engine.map(input, *types, **options) end
normalize(input, **options)
click to toggle source
# File lib/ama-entity-mapper.rb, line 32 def normalize(input, **options) engine.normalize(input, **options) end
resolve(definition)
click to toggle source
# File lib/ama-entity-mapper.rb, line 24 def resolve(definition) engine.resolve(definition) end
types()
click to toggle source
# File lib/ama-entity-mapper.rb, line 20 def types engine.registry end