Exception: Acta::InvalidEvent
- Defined in:
- lib/acta/errors.rb
Instance Attribute Summary collapse
-
#event ⇒ Object
readonly
Returns the value of attribute event.
Instance Method Summary collapse
-
#initialize(event) ⇒ InvalidEvent
constructor
A new instance of InvalidEvent.
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..join(', ')}") end |
Instance Attribute Details
#event ⇒ Object (readonly)
Returns the value of attribute event.
7 8 9 |
# File 'lib/acta/errors.rb', line 7 def event @event end |