Methods
#
A
E
H
N
S
Attributes
[R] array
[R] fmod
[R] oid
Class Public methods
new(type_metadata, oid: nil, fmod: nil)
# File activerecord/lib/active_record/connection_adapters/postgresql/type_metadata.rb, line 8
def initialize(type_metadata, oid: nil, fmod: nil)
  super(type_metadata)
  @type_metadata = type_metadata
  @oid = oid
  @fmod = fmod
  @array = /\[\]$/.match?(type_metadata.sql_type)
end
Instance Public methods
==(other)
Also aliased as: eql?
# File activerecord/lib/active_record/connection_adapters/postgresql/type_metadata.rb, line 20
def ==(other)
  other.is_a?(PostgreSQLTypeMetadata) &&
    attributes_for_hash == other.attributes_for_hash
end
eql?(other)
Alias for: ==
hash()
# File activerecord/lib/active_record/connection_adapters/postgresql/type_metadata.rb, line 26
def hash
  attributes_for_hash.hash
end
sql_type()
# File activerecord/lib/active_record/connection_adapters/postgresql/type_metadata.rb, line 16
def sql_type
  super.gsub(/\[\]$/, "".freeze)
end
Instance Protected methods
attributes_for_hash()
# File activerecord/lib/active_record/connection_adapters/postgresql/type_metadata.rb, line 32
def attributes_for_hash
  [self.class, @type_metadata, oid, fmod]
end