Class: Houston::ReadonlyHashSerializer
- Inherits:
-
Object
- Object
- Houston::ReadonlyHashSerializer
- Defined in:
- lib/houston/boot/serializers/readonly_hash_serializer.rb
Instance Method Summary collapse
Instance Method Details
#applies_to?(object) ⇒ Boolean
4 5 6 |
# File 'lib/houston/boot/serializers/readonly_hash_serializer.rb', line 4 def applies_to?(object) object.is_a?(Houston::ReadonlyHash) end |
#pack(object) ⇒ Object
8 9 10 |
# File 'lib/houston/boot/serializers/readonly_hash_serializer.rb', line 8 def pack(object) object.to_h end |