Sha256: e5deb26660072a65ded699f3dc7b7276baf32fc59c3434810a319b88bb50000d

Contents?: true

Size: 527 Bytes

Versions: 11

Compression:

Stored size: 527 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module DearInventory
  class Sale < Resource
    class << self
      extend T::Sig

      # Sale
      #
      # @param params [Hash] URL query string parameters that conform to
      #   DearInventory::Parameters::Sale::Index
      sig do
        params(params: T::Hash[Symbol, T.untyped]).
          returns(DearInventory::Response)
      end
      def index(params = {})
        new.request(:get, params: params, model: DearInventory::Models::Sale)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dear_inventory-0.7.5 lib/dear_inventory/resources/sale.rb
dear_inventory-0.7.4 lib/dear_inventory/resources/sale.rb
dear_inventory-0.7.3 lib/dear_inventory/resources/sale.rb
dear_inventory-0.7.2 lib/dear_inventory/resources/sale.rb
dear_inventory-0.7.1 lib/dear_inventory/resources/sale.rb
dear_inventory-0.7.0 lib/dear_inventory/resources/sale.rb
dear_inventory-0.6.3 lib/dear_inventory/resources/sale.rb
dear_inventory-0.6.2 lib/dear_inventory/resources/sale.rb
dear_inventory-0.6.1 lib/dear_inventory/resources/sale.rb
dear_inventory-0.6.0 lib/dear_inventory/resources/sale.rb
dear_inventory-0.5.0 lib/dear_inventory/resources/sale.rb