Sha256: eb239a11c6dcee04e888730e3241ebc3b144781e9f6808b80d9ff80fdaceb7d8

Contents?: true

Size: 344 Bytes

Versions: 1

Compression:

Stored size: 344 Bytes

Contents

module Xio
  class Stream < Resource

    def self.create(params={}, options={})
      post("/streams", params, options)
    end

    def self.details(stream_id, options={})
      get("/streams/#{stream_id}", options)
    end

    def self.terminate(stream_id, options={})
      delete("/streams/#{stream_id}", nil, options)
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xio-1.0.0 lib/xio/stream.rb