Class: PG::TextEncoder::JSON
- Inherits:
-
SimpleEncoder
- Object
- Coder
- SimpleCoder
- SimpleEncoder
- PG::TextEncoder::JSON
- Defined in:
- lib/pg/text_encoder.rb
Instance Attribute Summary
Attributes inherited from Coder
Instance Method Summary collapse
Methods inherited from Coder
#==, #decode, #dup, #format, #format=, #initialize, #inspect, #marshal_dump, #marshal_load, #oid, #oid=, #to_h
Constructor Details
This class inherits a constructor from PG::Coder
Instance Method Details
#encode(value) ⇒ Object
29 30 31 |
# File 'lib/pg/text_encoder.rb', line 29 def encode(value) ::JSON.generate(value, quirks_mode: true) end |