Class: MiniSql::Postgres::Coders::IPAddrCoder
- Inherits:
-
PG::SimpleDecoder
- Object
- PG::SimpleDecoder
- MiniSql::Postgres::Coders::IPAddrCoder
- 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 |