Exception: ActiveEvent::CommandInvalid

Inherits:
Exception
  • Object
show all
Defined in:
lib/active_event/command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(record) ⇒ CommandInvalid

Returns a new instance of CommandInvalid.



7
8
9
10
# File 'lib/active_event/command.rb', line 7

def initialize(record)
  self.record = record
  super 'invalid command'
end

Instance Attribute Details

#recordObject

Returns the value of attribute record.



5
6
7
# File 'lib/active_event/command.rb', line 5

def record
  @record
end