Class: EventflitClient::NullChannel
- Inherits:
-
Object
- Object
- EventflitClient::NullChannel
- Defined in:
- lib/eventflit-client/channel.rb
Instance Method Summary collapse
-
#initialize(channel_name, *a) ⇒ NullChannel
constructor
A new instance of NullChannel.
- #method_missing(*a) ⇒ Object
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
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 |