Sha256: ace0ce6702052c193b69c9fb67eccbf170e0236a3cabb59e745fe65da3f099f3
Contents?: true
Size: 540 Bytes
Versions: 1
Compression:
Stored size: 540 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.1 | lib/scripper/sequel/value_converter.rb |