Class: RocketChat::Realtime::Messages::Subscribe
- Inherits:
-
RocketChat::Realtime::Message
- Object
- RocketChat::Realtime::Message
- RocketChat::Realtime::Messages::Subscribe
- Defined in:
- lib/rocket_chat/realtime/messages/subscribe.rb
Overview
The subscribe message
The DDP subscribe message
Instance Attribute Summary collapse
- #name ⇒ Object readonly
- #parameters ⇒ Object readonly
Attributes inherited from RocketChat::Realtime::Message
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize(name, *parameters) ⇒ Subscribe
constructor
A new instance of Subscribe.
Methods inherited from RocketChat::Realtime::Message
Constructor Details
#initialize(name, *parameters) ⇒ Subscribe
Returns a new instance of Subscribe.
18 19 20 21 22 23 |
# File 'lib/rocket_chat/realtime/messages/subscribe.rb', line 18 def initialize(name, *parameters) super('sub') @name = name @parameters = parameters end |
Instance Attribute Details
#name ⇒ Object (readonly)
15 16 17 |
# File 'lib/rocket_chat/realtime/messages/subscribe.rb', line 15 def name @name end |
#parameters ⇒ Object (readonly)
15 16 17 |
# File 'lib/rocket_chat/realtime/messages/subscribe.rb', line 15 def parameters @parameters end |
Instance Method Details
#body ⇒ Object
28 29 30 31 32 33 |
# File 'lib/rocket_chat/realtime/messages/subscribe.rb', line 28 def body { name: name, params: parameters } end |