Class: Xio::Stream
Class Method Summary
collapse
Methods inherited from Resource
api_key_id, api_secret_key, base_url, delete, get, post, put
Methods included from Serializer
#decode, #encode, included
Class Method Details
.create(params = {}, options = {}) ⇒ Object
4
5
6
|
# File 'lib/xio/stream.rb', line 4
def self.create(params={}, options={})
post("/streams", params, options)
end
|
.details(stream_id, options = {}) ⇒ Object
8
9
10
|
# File 'lib/xio/stream.rb', line 8
def self.details(stream_id, options={})
get("/streams/#{stream_id}", options)
end
|
.terminate(stream_id, options = {}) ⇒ Object
12
13
14
|
# File 'lib/xio/stream.rb', line 12
def self.terminate(stream_id, options={})
delete("/streams/#{stream_id}", nil, options)
end
|