Sha256: 9a5acb20f25d3209f4565e54a72a65caaf6d4a64d997c44e281db0f6fb824b39

Contents?: true

Size: 584 Bytes

Versions: 6

Compression:

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

      alias call index
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dear_inventory-1.4.0 lib/dear_inventory/resources/product.rb
dear_inventory-1.3.0 lib/dear_inventory/resources/product.rb
dear_inventory-1.2.0 lib/dear_inventory/resources/product.rb
dear_inventory-1.1.1 lib/dear_inventory/resources/product.rb
dear_inventory-1.1.0 lib/dear_inventory/resources/product.rb
dear_inventory-1.0.0 lib/dear_inventory/resources/product.rb