Sha256: 5b089c3b511d4ce41f9deba0fc3f7a9cab3b21c590691d8dba32420bd2c208b1

Contents?: true

Size: 719 Bytes

Versions: 5

Compression:

Stored size: 719 Bytes

Contents

module OiApi

  class Client

    module DataTransfers

      def data_transfers(options = {})
        get("/datatransfers/", options)
      end

      def data_transfer(data_transfer_id, options = {})
        get("/datatransfers/#{data_transfer_id}/", options)
      end

      def create_data_transfer(offer_id, options = {})
        post("/offers/#{offer_id}/datatransfers/", options)
      end

      def update_data_transfer(offer_id, data_transfer_id, options = {})
        put("/offers/#{offer_id}/datatransfers/#{data_transfer_id}/", options)
      end

      def delete_data_transfer(data_transfer_id, options = {})
        delete("/datatransfers/#{data_transfer_id}/", options)
      end

    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
oi-api-ruby-0.1.5 lib/oi_api/client/data_transfers.rb
oi-api-ruby-0.1.4 lib/oi_api/client/data_transfers.rb
oi-api-ruby-0.1.3 lib/oi_api/client/data_transfers.rb
oi-api-ruby-0.1.2 lib/oi_api/client/data_transfers.rb
oi-api-ruby-0.1.1 lib/oi_api/client/data_transfers.rb