Class: YugabyteYSQL::TextDecoder::TimestampUtcToLocal
- Inherits:
-
Timestamp
- Object
- Timestamp
- YugabyteYSQL::TextDecoder::TimestampUtcToLocal
- Defined in:
- lib/pg/text_decoder/timestamp.rb
Instance Method Summary collapse
-
#initialize(hash = {}, **kwargs) ⇒ TimestampUtcToLocal
constructor
A new instance of TimestampUtcToLocal.
Constructor Details
#initialize(hash = {}, **kwargs) ⇒ TimestampUtcToLocal
Returns a new instance of TimestampUtcToLocal.
14 15 16 17 |
# File 'lib/pg/text_decoder/timestamp.rb', line 14 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_LOCAL) end |