Sha256: 160a357b08bcd268d158652f752f54c3c1c50a18f159f45e048d8173b367726b

Contents?: true

Size: 560 Bytes

Versions: 10

Compression:

Stored size: 560 Bytes

Contents

# typed: strict
# frozen_string_literal: true

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

      # Product
      #
      # @param params [Hash] URL query string parameters that conform to
      #   DearInventory::Parameters::Product::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::Products
        )
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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