Class: YugabyteYSQL::BinaryEncoder::TimestampUtc

Inherits:
Timestamp
  • Object
show all
Defined in:
lib/pg/binary_encoder/timestamp.rb

Overview

Convenience classes for timezone options

Instance Method Summary collapse

Constructor Details

#initialize(hash = {}, **kwargs) ⇒ TimestampUtc

Returns a new instance of TimestampUtc.



8
9
10
11
# File 'lib/pg/binary_encoder/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)
end