Class: AMA::Entity::Mapper::Type::BuiltIn::HashType

Inherits:
AMA::Entity::Mapper::Type show all
Extended by:
Mixin::Errors
Includes:
Mixin::Errors
Defined in:
lib/ama-entity-mapper/type/builtin/hash_type.rb

Overview

Predefined type for Hash class

Instance Attribute Summary

Attributes inherited from AMA::Entity::Mapper::Type

#attributes, #denormalizer, #enumerator, #factory, #injector, #normalizer, #parameters, #type, #virtual

Instance Method Summary collapse

Methods included from Mixin::Errors

compliance_error, mapping_error, raise_if_internal, validation_error

Methods inherited from AMA::Entity::Mapper::Type

#==, #attribute!, #eql?, #hash, #instance!, #instance?, #parameter!, #resolve, #resolve_parameter, #resolved!, #resolved?, #to_def, #to_s, #valid!, #valid?, #violations

Methods included from Mixin::HandlerSupport

declare_handler_block_setter, declare_handler_getter, declare_handler_method, declare_handler_setter, declare_namespace_method, included

Methods included from Mixin::Reflection

#install_object_method, #method_object, #object_variable, #object_variable_exists, #object_variables, #set_object_attribute

Constructor Details

#initializeHashType

Returns a new instance of HashType.



20
21
22
23
24
25
26
27
# File 'lib/ama-entity-mapper/type/builtin/hash_type.rb', line 20

def initialize
  super(::Hash)
  define_attribute
  define_enumerator
  define_injector
  define_normalizer
  define_denormalizer
end