Class: PusherClient::NullChannel

Inherits:
Object
  • Object
show all
Defined in:
lib/pusher-client/channel.rb

Instance Method Summary collapse

Constructor Details

#initialize(channel_name, *a) ⇒ NullChannel

Returns a new instance of NullChannel


48
49
50
# File 'lib/pusher-client/channel.rb', line 48

def initialize(channel_name, *a)
  @name = channel_name
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*a) ⇒ Object

Raises:

  • (ArgumentError)

51
52
53
# File 'lib/pusher-client/channel.rb', line 51

def method_missing(*a)
  raise ArgumentError, "Channel `#{@name}` hasn't been subscribed yet."
end