Exception: Omnes::AlreadyRegisteredEventError
- Defined in:
- lib/omnes/errors.rb
Overview
Raised when trying to register the same event name a second time
Instance Attribute Summary collapse
-
#event_name ⇒ Object
readonly
Returns the value of attribute event_name.
-
#registration ⇒ Object
readonly
Returns the value of attribute registration.
Instance Method Summary collapse
-
#initialize(event_name:, registration:) ⇒ AlreadyRegisteredEventError
constructor
A new instance of AlreadyRegisteredEventError.
Constructor Details
#initialize(event_name:, registration:) ⇒ AlreadyRegisteredEventError
Returns a new instance of AlreadyRegisteredEventError.
63 64 65 66 67 |
# File 'lib/omnes/errors.rb', line 63 def initialize(event_name:, registration:) @event_name = event_name @registration = registration super() end |
Instance Attribute Details
#event_name ⇒ Object (readonly)
Returns the value of attribute event_name.
61 62 63 |
# File 'lib/omnes/errors.rb', line 61 def event_name @event_name end |
#registration ⇒ Object (readonly)
Returns the value of attribute registration.
61 62 63 |
# File 'lib/omnes/errors.rb', line 61 def registration @registration end |