Class: Wampproto::Message::Unsubscribed
- Defined in:
- lib/wampproto/message/unsubscribed.rb
Overview
Unsubscribed message
Instance Attribute Summary collapse
-
#request_id ⇒ Object
readonly
Returns the value of attribute request_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(request_id) ⇒ Unsubscribed
constructor
A new instance of Unsubscribed.
- #marshal ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(request_id) ⇒ Unsubscribed
Returns a new instance of Unsubscribed.
9 10 11 12 |
# File 'lib/wampproto/message/unsubscribed.rb', line 9 def initialize(request_id) super() @request_id = Validate.int!("Request Id", request_id) end |
Instance Attribute Details
#request_id ⇒ Object (readonly)
Returns the value of attribute request_id.
7 8 9 |
# File 'lib/wampproto/message/unsubscribed.rb', line 7 def request_id @request_id end |
Class Method Details
Instance Method Details
#marshal ⇒ Object
14 15 16 |
# File 'lib/wampproto/message/unsubscribed.rb', line 14 def marshal [Type::UNSUBSCRIBED, request_id] end |