Class: Grape::Entity
- Inherits:
-
Object
- Object
- Grape::Entity
- Defined in:
- lib/grape/msgpack.rb
Instance Method Summary collapse
Instance Method Details
#to_msgpack(options = {}) ⇒ Object
43 44 45 46 |
# File 'lib/grape/msgpack.rb', line 43 def to_msgpack( = {}) = .to_h if && .respond_to?(:to_h) MessagePack.pack(serializable_hash()) end |