Class: Wampproto::Message::Register
- Defined in:
- lib/wampproto/message/register.rb
Overview
publish message
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#procedure ⇒ Object
readonly
Returns the value of attribute procedure.
-
#request_id ⇒ Object
readonly
Returns the value of attribute request_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(request_id, options, procedure) ⇒ Register
constructor
A new instance of Register.
- #marshal ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(request_id, options, procedure) ⇒ Register
Returns a new instance of Register.
9 10 11 12 13 14 |
# File 'lib/wampproto/message/register.rb', line 9 def initialize(request_id, , procedure) super() @request_id = Validate.int!("Request Id", request_id) @options = Validate.hash!("Options", ) @procedure = Validate.string!("Procedure", procedure) end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/wampproto/message/register.rb', line 7 def @options end |
#procedure ⇒ Object (readonly)
Returns the value of attribute procedure.
7 8 9 |
# File 'lib/wampproto/message/register.rb', line 7 def procedure @procedure end |
#request_id ⇒ Object (readonly)
Returns the value of attribute request_id.
7 8 9 |
# File 'lib/wampproto/message/register.rb', line 7 def request_id @request_id end |
Class Method Details
.parse(wamp_message) ⇒ Object
20 21 22 23 |
# File 'lib/wampproto/message/register.rb', line 20 def self.parse() _type, request_id, , procedure = new(request_id, , procedure) end |