Module: Appfuel::Domain

Defined in:
lib/appfuel/domain/dsl.rb,
lib/appfuel/domain/entity.rb,
lib/appfuel/domain/value_object.rb,
lib/appfuel/domain/entity_collection.rb,
lib/appfuel/domain/domain_name_parser.rb

Overview

Mixin used to add attributes to an object. Attributes are given an name and have a type declaration which is used to ensure it is correct. Types are handled by Dry::Types which are mixed into the Types module. When an object is instaniated dymamic getters and setters are created depending on if the a value_object flag has been toggled

Examples:

attribute :foo, 'strict.string', default: 'bar', min_size: 3

Defined Under Namespace

Modules: DomainNameParser, Dsl Classes: Entity, EntityCollection, ValueObject