Sha256: 8681e332c37f1ada3d05fc797a2006245c74db1c1107f155823984b1a6902b3b

Contents?: true

Size: 526 Bytes

Versions: 4

Compression:

Stored size: 526 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

4 entries across 4 versions & 1 rubygems

Version Path
dear_inventory-0.4.1 lib/dear_inventory/resources/sale.rb
dear_inventory-0.4.0 lib/dear_inventory/resources/sale.rb
dear_inventory-0.3.0 lib/dear_inventory/resources/sale.rb
dear_inventory-0.2.0 lib/dear_inventory/resources/sale.rb