Class: CleanArchitecture::Adapters::AttributeHashBase

Inherits:
Object
  • Object
show all
Defined in:
lib/clean_architecture/adapters/attribute_hash_base.rb

Overview

Allows you to implement an interface around a hash with type safety

Defined Under Namespace

Classes: EmptyOrIncorrectAttributeTypeError

Instance Method Summary collapse

Constructor Details

#initialize(attribute_hash) ⇒ AttributeHashBase

Returns a new instance of AttributeHashBase.



14
15
16
# File 'lib/clean_architecture/adapters/attribute_hash_base.rb', line 14

def initialize(attribute_hash)
  @attribute_hash = attribute_hash
end