Class: Pubnub::Message::Stop

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

Overview

Used to stopping events

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#reasonObject (readonly)

Returns the value of attribute reason.



18
19
20
# File 'lib/pubnub/message.rb', line 18

def reason
  @reason
end