edge badge
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 9
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 21
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 27
def hash
  attributes_for_hash.hash
end
sql_type()
# File activerecord/lib/active_record/connection_adapters/postgresql/type_metadata.rb, line 17
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 33
def attributes_for_hash
  [self.class, @type_metadata, oid, fmod]
end