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



11
12
13
# File 'lib/mini_sql/postgres/coders.rb', line 11

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