Class: YugabyteYSQL::TextDecoder::TimestampUtc
- Inherits:
-
Timestamp
- Object
- Timestamp
- YugabyteYSQL::TextDecoder::TimestampUtc
- Defined in:
- lib/pg/text_decoder/timestamp.rb
Overview
Convenience classes for timezone options
Instance Method Summary collapse
-
#initialize(hash = {}, **kwargs) ⇒ TimestampUtc
constructor
A new instance of TimestampUtc.
Constructor Details
#initialize(hash = {}, **kwargs) ⇒ TimestampUtc
8 9 10 11 |
# File 'lib/pg/text_decoder/timestamp.rb', line 8 def initialize(hash={}, **kwargs) warn("PG::Coder.new(hash) is deprecated. Please use keyword arguments instead! Called from #{caller.first}", category: :deprecated) unless hash.empty? super(**hash, **kwargs, flags: YugabyteYSQL::Coder::TIMESTAMP_DB_UTC | YugabyteYSQL::Coder::TIMESTAMP_APP_UTC) end |