Class: Pubnub::Message::Stop
- Inherits:
-
InternalMessage
- Object
- InternalMessage
- Pubnub::Message::Stop
- Defined in:
- lib/pubnub/message.rb
Overview
Used to stopping events
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(reason = nil) ⇒ Stop
constructor
A new instance of Stop.
Constructor Details
#initialize(reason = nil) ⇒ Stop
Returns a new instance of Stop.
20 21 22 |
# File 'lib/pubnub/message.rb', line 20 def initialize(reason = nil) @reason = reason end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
18 19 20 |
# File 'lib/pubnub/message.rb', line 18 def reason @reason end |