Class: Yes::Core::Aggregate::Dsl::MethodDefiners::CommandGroup::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/yes/core/aggregate/dsl/method_definers/command_group/base.rb

Overview

Base class for command_group method definers.

Since:

  • 0.1.0

Direct Known Subclasses

CanCommandGroup, CommandGroup

Instance Method Summary collapse

Constructor Details

#initialize(command_group_data) ⇒ Base

Returns a new instance of Base.

Since:

  • 0.1.0



11
12
13
14
# File 'lib/yes/core/aggregate/dsl/method_definers/command_group/base.rb', line 11

def initialize(command_group_data)
  @name = command_group_data.name
  @aggregate_class = command_group_data.aggregate_class
end

Instance Method Details

#callObject

Raises:

  • (NotImplementedError)

Since:

  • 0.1.0



16
17
18
# File 'lib/yes/core/aggregate/dsl/method_definers/command_group/base.rb', line 16

def call
  raise NotImplementedError, "#{self.class} must implement #call"
end