Sha256: e07ebc5990bdc67e2cf0ccab77371e98af81924b9d68f71fa9228b8687bf5cf1

Contents?: true

Size: 296 Bytes

Versions: 4

Compression:

Stored size: 296 Bytes

Contents

# frozen_string_literal: true

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
novaposhta_api-0.2.1 lib/novaposhta_api/resources/warehouse_resource.rb
novaposhta_api-0.2.0 lib/novaposhta_api/resources/warehouse_resource.rb
novaposhta_api-0.1.9 lib/novaposhta_api/resources/warehouse_resource.rb
novaposhta_api-0.1.8 lib/novaposhta_api/resources/warehouse_resource.rb