Class: Sequent::Core::BaseCommand
- Inherits:
-
Object
- Object
- Sequent::Core::BaseCommand
- Includes:
- ActiveModel::Serializers::JSON, ActiveModel::Validations, Helpers::AttributeSupport, Helpers::Copyable, Helpers::EqualSupport, Helpers::Mergable, Helpers::ParamSupport, Helpers::TypeConversionSupport, Helpers::UuidHelper
- Defined in:
- lib/sequent/core/command.rb
Overview
Base command
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ BaseCommand
constructor
A new instance of BaseCommand.
Methods included from Helpers::TypeConversionSupport
Methods included from Helpers::Copyable
Methods included from Helpers::AttributeSupport
#attributes, included, #validation_errors
Methods included from Helpers::UuidHelper
Methods included from Helpers::EqualSupport
Methods included from Helpers::ParamSupport
#as_params, included, #to_params
Methods included from Helpers::Mergable
Constructor Details
#initialize(args = {}) ⇒ BaseCommand
Returns a new instance of BaseCommand.
26 27 28 29 |
# File 'lib/sequent/core/command.rb', line 26 def initialize(args = {}) update_all_attributes args @created_at = DateTime.now end |