Class: ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Point

Inherits:
Type
  • Object
show all
Defined in:
lib/arjdbc/postgresql/base/oid.rb

Instance Method Summary collapse

Methods inherited from Type

#infinity, #simplified_type

Instance Method Details

#typeObject



125
# File 'lib/arjdbc/postgresql/base/oid.rb', line 125

def type; :string end

#type_cast(value) ⇒ Object



127
128
129
130
131
132
133
# File 'lib/arjdbc/postgresql/base/oid.rb', line 127

def type_cast(value)
  if ::String === value
    ConnectionAdapters::PostgreSQLColumn.string_to_point value
  else
    value
  end
end