Class: PG::BinaryDecoder::TimestampLocal
- Inherits:
-
Timestamp
- Object
- Coder
- SimpleCoder
- SimpleDecoder
- Timestamp
- PG::BinaryDecoder::TimestampLocal
- Defined in:
- lib/pg/binary_decoder.rb
Constant Summary
Constants inherited from Coder
Coder::FORMAT_ERROR_MASK, Coder::FORMAT_ERROR_TO_PARTIAL, Coder::FORMAT_ERROR_TO_RAISE, Coder::FORMAT_ERROR_TO_STRING, Coder::TIMESTAMP_APP_LOCAL, Coder::TIMESTAMP_APP_UTC, Coder::TIMESTAMP_DB_LOCAL, Coder::TIMESTAMP_DB_UTC
Instance Attribute Summary
Attributes inherited from Coder
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ TimestampLocal
constructor
A new instance of TimestampLocal.
Methods inherited from Coder
#==, #dup, #flags, #flags=, #format, #format=, #inspect, #inspect_short, #marshal_dump, #marshal_load, #oid, #oid=, #to_h
Constructor Details
#initialize(params = {}) ⇒ TimestampLocal
Returns a new instance of TimestampLocal.
18 19 20 |
# File 'lib/pg/binary_decoder.rb', line 18 def initialize(params={}) super(params.merge(flags: PG::Coder::TIMESTAMP_DB_LOCAL | PG::Coder::TIMESTAMP_APP_LOCAL)) end |