Module: Cuprum::Collections::Adaptable::Commands::AbstractBuildOne

Includes:
ParameterValidation
Defined in:
lib/cuprum/collections/adaptable/commands/abstract_build_one.rb

Overview

Abstract implementation of the BuildOne command for adaptable collections.

Instance Method Summary collapse

Instance Method Details

#call(attributes:) ⇒ Object

Creates a new entity from the given attributes.

Parameters:

  • attributes (Hash)

    the attributes to build into an entity.

Returns:

  • (Object)

    an instance of the entity class with the given attributes.



19
# File 'lib/cuprum/collections/adaptable/commands/abstract_build_one.rb', line 19

validate :attributes