Exception: ActiveModel::Pusher::Events::InvalidEventError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/active_model/pusher/events.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#eventObject (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_sObject



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