Class: CleanArchitecture::Adapters::AttributeHashBase
- Inherits:
-
Object
- Object
- CleanArchitecture::Adapters::AttributeHashBase
- 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
-
#initialize(attribute_hash) ⇒ AttributeHashBase
constructor
A new instance of AttributeHashBase.
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 |