Class: Pubnub::Message::AddSubscription
- Inherits:
-
InternalMessage
- Object
- InternalMessage
- Pubnub::Message::AddSubscription
- Defined in:
- lib/pubnub/message.rb
Overview
Used to add new subscription to currently running one
Instance Attribute Summary collapse
-
#event ⇒ Object
readonly
Returns the value of attribute event.
Instance Method Summary collapse
-
#initialize(event) ⇒ AddSubscription
constructor
A new instance of AddSubscription.
Constructor Details
#initialize(event) ⇒ AddSubscription
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
#event ⇒ Object (readonly)
Returns the value of attribute event.
27 28 29 |
# File 'lib/pubnub/message.rb', line 27 def event @event end |