class AMA::Entity::Mapper::Type::BuiltIn::PrimitiveType

Predefined type for Set class

Constants

ALL

rubocop:enable Lint/UnifiedInteger

Public Class Methods

new(type, method_map) click to toggle source
Calls superclass method AMA::Entity::Mapper::Type::new
# File lib/ama-entity-mapper/type/builtin/primitive_type.rb, line 16
def initialize(type, method_map)
  super(type)
  this = self

  factory_block do |*|
    this.compliance_error("#{this} factory should never be called")
  end
  normalizer_block do |entity, *|
    entity
  end
  self.denormalizer = Denormalizer.new(method_map)
  enumerator_block do |*|
    Enumerator.new { |*| }
  end
  injector_block { |*| }
end