Class: Wampproto::Message::Base
- Inherits:
-
Object
- Object
- Wampproto::Message::Base
show all
- Defined in:
- lib/wampproto/message/base.rb
Overview
Base Interface for the Message(s)
Direct Known Subclasses
Abort, Authenticate, Call, Challenge, Error, Event, Goodbye, Hello, Invocation, Publish, Published, Register, Registered, Result, Subscribe, Subscribed, Unregister, Unregistered, Unsubscribe, Unsubscribed, Welcome, Yield
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.parse(msg) ⇒ Object
8
9
10
|
# File 'lib/wampproto/message/base.rb', line 8
def parse(msg)
raise NotImplementedError
end
|
.type ⇒ Object
12
13
14
15
16
|
# File 'lib/wampproto/message/base.rb', line 12
def type
const = name.to_s.split("::").last.to_s.upcase
Wampproto::Message::Type.const_get(const)
end
|
Instance Method Details
#marshal ⇒ Object
19
20
21
|
# File 'lib/wampproto/message/base.rb', line 19
def marshal
raise NotImplementedError
end
|
#type ⇒ Object
23
24
25
26
27
|
# File 'lib/wampproto/message/base.rb', line 23
def type
const = self.class.name.to_s.split("::").last.to_s.upcase
Wampproto::Message::Type.const_get(const)
end
|