Class: Wampproto::Serializer::JSON
- Inherits:
-
Object
- Object
- Wampproto::Serializer::JSON
- Defined in:
- lib/wampproto/serializer/json.rb
Overview
Add common API for serializer
Class Method Summary collapse
Class Method Details
.deserialize(message) ⇒ Object
13 14 15 |
# File 'lib/wampproto/serializer/json.rb', line 13 def self.deserialize() ::JSON.parse().then { Message.resolve(_1) } end |
.serialize(message) ⇒ Object
9 10 11 |
# File 'lib/wampproto/serializer/json.rb', line 9 def self.serialize() ::JSON.dump(.marshal) end |