Exception: ActiveModel::Pusher::Events::InvalidEventError
- Inherits:
-
StandardError
- Object
- StandardError
- ActiveModel::Pusher::Events::InvalidEventError
- Defined in:
- lib/active_model/pusher/events.rb
Instance Attribute Summary collapse
-
#event ⇒ Object
readonly
Returns the value of attribute event.
Instance Method Summary collapse
-
#initialize(event) ⇒ InvalidEventError
constructor
A new instance of InvalidEventError.
- #to_s ⇒ Object
Constructor Details
#initialize(event) ⇒ InvalidEventError
Returns a new instance of InvalidEventError.
7 8 9 |
# File 'lib/active_model/pusher/events.rb', line 7 def initialize(event) @event = event end |
Instance Attribute Details
#event ⇒ Object (readonly)
Returns the value of attribute event.
5 6 7 |
# File 'lib/active_model/pusher/events.rb', line 5 def event @event end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/active_model/pusher/events.rb', line 11 def to_s "Event `#{@event}` is not allowed. Add it into your pusher's `events` class attribute" end |