Class: FourthDimensional::CommandHandler::CommandAndEvents
- Inherits:
-
Object
- Object
- FourthDimensional::CommandHandler::CommandAndEvents
- Defined in:
- lib/fourth_dimensional/command_handler.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#events ⇒ Object
readonly
Returns the value of attribute events.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(command:, events:) ⇒ CommandAndEvents
constructor
A new instance of CommandAndEvents.
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
#command ⇒ Object (readonly)
Returns the value of attribute command.
33 34 35 |
# File 'lib/fourth_dimensional/command_handler.rb', line 33 def command @command end |
#events ⇒ Object (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 |