Sha256: 4063ef6c71768d0cdc89a9f98888b099b4abce24d1391ea609edd207ec90e225

Contents?: true

Size: 429 Bytes

Versions: 1

Compression:

Stored size: 429 Bytes

Contents

# frozen_string_literal: true

module Scripper
  module Sequel
    class << self
      def strip(object, **args)
        if object.is_a?(Hash)
          strip_dataset(object)
        else
          strip_model(object, **args)
        end
      end

      private

      def strip_model(*args)
        ModelStripper.strip(*args)
      end

      def strip_dataset(ds)
        DatasetStripper.strip(ds)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
scripper-0.1.1 lib/scripper/sequel.rb