Class: Pubnub::Message::AddSubscription

Inherits:
InternalMessage show all
Defined in:
lib/pubnub/message.rb

Overview

Used to add new subscription to currently running one

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (AddSubscription) initialize(event)

Returns a new instance of AddSubscription



29
30
31
# File 'lib/pubnub/message.rb', line 29

def initialize(event)
  @event = event
end

Instance Attribute Details

- (Object) event (readonly)

Returns the value of attribute event



27
28
29
# File 'lib/pubnub/message.rb', line 27

def event
  @event
end