Class: ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Cidr

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

Direct Known Subclasses

Inet

Instance Method Summary collapse

Methods inherited from Type

#infinity, #simplified_type

Instance Method Details

#typeObject



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

def type; :cidr end

#type_cast(value) ⇒ Object



318
319
320
321
322
# File 'lib/arjdbc/postgresql/base/oid.rb', line 318

def type_cast(value)
  return if value.nil?

  ConnectionAdapters::PostgreSQLColumn.string_to_cidr value
end