Class: Wampproto::Message::Unregistered
- Defined in:
- lib/wampproto/message/unregistered.rb
Overview
unregistered 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) ⇒ Unregistered
constructor
A new instance of Unregistered.
- #marshal ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(request_id) ⇒ Unregistered
Returns a new instance of Unregistered.
9 10 11 12 |
# File 'lib/wampproto/message/unregistered.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/unregistered.rb', line 7 def request_id @request_id end |
Class Method Details
.parse(wamp_message) ⇒ Object
18 19 20 21 |
# File 'lib/wampproto/message/unregistered.rb', line 18 def self.parse() _type, request_id = new(request_id) end |
Instance Method Details
#marshal ⇒ Object
14 15 16 |
# File 'lib/wampproto/message/unregistered.rb', line 14 def marshal [Type::UNREGISTERED, request_id] end |