Sha256: 97b58026090f169b29202fd2ae3e2c597832511c9c7f63c1b74444bd5ede1f19

Contents?: true

Size: 293 Bytes

Versions: 2

Compression:

Stored size: 293 Bytes

Contents

# frozen_string_literal: true

module NovaposhtaApi
  module Resources
    class WarehouseResource < Resource
      def all(params = {})
        response = post('Address/getWarehouses', params)

        NovaposhtaApi::Models::Warehouse.extract_collection(response)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
novaposhta_api-0.1.7 lib/novaposhta_api/resources/warehouse_resource.rb
novaposhta_api-0.1.5 lib/novaposhta_api/resources/warehouse_resource.rb