Sha256: 78651efcf7cdae313df030a47b9690c02e1e17c292fb0ee1d5f48fa631d3beb6
Contents?: true
Size: 563 Bytes
Versions: 1
Compression:
Stored size: 563 Bytes
Contents
# frozen_string_literal: true module Scripper module Sequel module ValueConverter class << self def convert_value(value) if value.is_a?(::Sequel::Postgres::JSONHashBase) value.to_h elsif value.is_a?(::Sequel::Postgres::JSONArrayBase) value.to_a elsif value.is_a?(::Sequel::Postgres::PGArray) value.to_a elsif value.is_a?(BigDecimal) value.to_f else value end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
scripper-0.1.0 | lib/scripper/sequel/value_converter.rb |