PG::BinaryEncoder::

Int2 class

This is the encoder class for the PostgreSQL int2 (alias smallint) type.

Non-Number values are expected to have method to_i defined.