Class: Wampproto::Message::Unregistered

Inherits:
Base
  • Object
show all
Defined in:
lib/wampproto/message/unregistered.rb

Overview

unregistered message

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

type, #type

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_idObject (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(wamp_message)
  _type, request_id = wamp_message
  new(request_id)
end

Instance Method Details

#marshalObject



14
15
16
# File 'lib/wampproto/message/unregistered.rb', line 14

def marshal
  [Type::UNREGISTERED, request_id]
end