Exception: Acta::InvalidEvent

Inherits:
Error
  • Object
show all
Defined in:
lib/acta/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event) ⇒ InvalidEvent

Returns a new instance of InvalidEvent.



9
10
11
12
# File 'lib/acta/errors.rb', line 9

def initialize(event)
  @event = event
  super("Event is invalid: #{event.errors.full_messages.join(', ')}")
end

Instance Attribute Details

#eventObject (readonly)

Returns the value of attribute event.



7
8
9
# File 'lib/acta/errors.rb', line 7

def event
  @event
end