Class: EventflitClient::NullChannel

Inherits:
Object
  • Object
show all
Defined in:
lib/eventflit-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/eventflit-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/eventflit-client/channel.rb', line 51

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