class PG::TypeMapByClass

This type map casts values based on the class or the ancestors of the given value to be sent.

This type map is usable for type casting query bind parameters and COPY data for PG::Connection#put_copy_data . Therefore only encoders might be assigned by the []= method.