Class: MiniSql::Postgres::Coders::IPAddrCoder

Inherits:
PG::SimpleDecoder
  • Object
show all
Defined in:
lib/mini_sql/postgres/coders.rb

Instance Method Summary collapse

Instance Method Details

#decode(string, tuple = nil, field = nil) ⇒ Object



13
14
15
# File 'lib/mini_sql/postgres/coders.rb', line 13

def decode(string, tuple = nil, field = nil)
  IPAddr.new(string)
end