Class: FourthDimensional::CommandHandler::CommandAndEvents

Inherits:
Object
  • Object
show all
Defined in:
lib/fourth_dimensional/command_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command:, events:) ⇒ CommandAndEvents

Returns a new instance of CommandAndEvents.



35
36
37
38
# File 'lib/fourth_dimensional/command_handler.rb', line 35

def initialize(command:, events:)
  @command = command
  @events = events
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



33
34
35
# File 'lib/fourth_dimensional/command_handler.rb', line 33

def command
  @command
end

#eventsObject (readonly)

Returns the value of attribute events.



33
34
35
# File 'lib/fourth_dimensional/command_handler.rb', line 33

def events
  @events
end

Instance Method Details

#==(other) ⇒ Object



40
41
42
# File 'lib/fourth_dimensional/command_handler.rb', line 40

def ==(other)
  self.class == other.class && command == other.command && events == other.events
end