Class: RDO::Postgres::Array::Integer
- Inherits:
-
RDO::Postgres::Array
- Object
- Array
- RDO::Postgres::Array
- RDO::Postgres::Array::Integer
- Defined in:
- lib/rdo/postgres/array/integer.rb
Overview
Ruby handling for integer[] type in PostgreSQL.
Instance Method Summary collapse
Methods inherited from RDO::Postgres::Array
[], #initialize, parse, #to_a, #to_s
Constructor Details
This class inherits a constructor from RDO::Postgres::Array
Instance Method Details
#format_value(v) ⇒ Object
16 17 18 |
# File 'lib/rdo/postgres/array/integer.rb', line 16 def format_value(v) v.to_s end |
#parse_value(s) ⇒ Object
12 13 14 |
# File 'lib/rdo/postgres/array/integer.rb', line 12 def parse_value(s) s.to_i end |