module Ably::Modules::MessagePack
MessagePack
module adds to_msgpack
to the class on the assumption that the class supports the method as_json
Public Instance Methods
to_msgpack(pk = nil)
click to toggle source
Generate a packed MsgPack version of this object based on the JSON representation. Keys thus use mixedCase syntax as expected by the Realtime
API
# File lib/submodules/ably-ruby/lib/ably/modules/message_pack.rb, line 10 def to_msgpack(pk = nil) as_json.to_msgpack(pk) end