Class: Yes::Core::Aggregate::Dsl::ClassResolvers::Command::Base Abstract

Inherits:
Base
  • Object
show all
Defined in:
lib/yes/core/aggregate/dsl/class_resolvers/command/base.rb

Overview

This class is abstract.

Subclass and implement the required methods from Base

Base class for command-related class resolvers

This class extends the base resolver functionality to handle command-specific class generation. It provides a foundation for resolvers that need to work with commands, such as command classes and their associated events.

Since:

  • 0.1.0

Direct Known Subclasses

Authorizer, Command, Event, GuardEvaluator, StateUpdater

Instance Method Summary collapse

Methods inherited from Base

#call

Constructor Details

#initialize(command_data) ⇒ Base

Initializes a new command-based class resolver

Parameters:

Since:

  • 0.1.0



22
23
24
25
26
# File 'lib/yes/core/aggregate/dsl/class_resolvers/command/base.rb', line 22

def initialize(command_data)
  @command_data = command_data

  super(command_data.context_name, command_data.aggregate_name)
end