Module: Ably::Modules::MessagePack
- Included in:
- Ably::Models::IdiomaticRubyWrapper, ModelCommon
- Defined in:
- lib/submodules/ably-ruby/lib/ably/modules/message_pack.rb
Overview
MessagePack module adds #to_msgpack to the class on the assumption that the class supports the method #as_json
Instance Method Summary collapse
-
#to_msgpack(pk = nil) ⇒ Object
Generate a packed MsgPack version of this object based on the JSON representation.
Instance Method Details
#to_msgpack(pk = nil) ⇒ Object
Generate a packed MsgPack version of this object based on the JSON representation. Keys thus use mixedCase syntax as expected by the Realtime API
10 11 12 |
# File 'lib/submodules/ably-ruby/lib/ably/modules/message_pack.rb', line 10 def to_msgpack(pk = nil) as_json.to_msgpack(pk) end |