Class: Wampproto::Message::Registered
- Defined in:
- lib/wampproto/message/registered.rb
Overview
publish message
Instance Attribute Summary collapse
-
#registration_id ⇒ Object
readonly
Returns the value of attribute registration_id.
-
#request_id ⇒ Object
readonly
Returns the value of attribute request_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(request_id, registration_id) ⇒ Registered
constructor
A new instance of Registered.
- #marshal ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(request_id, registration_id) ⇒ Registered
Returns a new instance of Registered.
9 10 11 12 13 |
# File 'lib/wampproto/message/registered.rb', line 9 def initialize(request_id, registration_id) super() @request_id = Validate.int!("Request Id", request_id) @registration_id = Validate.int!("Registration Id", registration_id) end |
Instance Attribute Details
#registration_id ⇒ Object (readonly)
Returns the value of attribute registration_id.
7 8 9 |
# File 'lib/wampproto/message/registered.rb', line 7 def registration_id @registration_id end |
#request_id ⇒ Object (readonly)
Returns the value of attribute request_id.
7 8 9 |
# File 'lib/wampproto/message/registered.rb', line 7 def request_id @request_id end |
Class Method Details
.parse(wamp_message) ⇒ Object
19 20 21 22 |
# File 'lib/wampproto/message/registered.rb', line 19 def self.parse() _type, request_id, registration_id = new(request_id, registration_id) end |
Instance Method Details
#marshal ⇒ Object
15 16 17 |
# File 'lib/wampproto/message/registered.rb', line 15 def marshal [Type::REGISTERED, request_id, registration_id] end |