class Pili::Hub

Attributes

credentials[R]
hub_name[R]

Public Class Methods

new(credentials, hub_name) click to toggle source
# File lib/pili/hub.rb, line 8
def initialize(credentials, hub_name)
  @credentials = credentials
  @hub_name   = hub_name
end

Public Instance Methods

create_stream(options = {}) click to toggle source
# File lib/pili/hub.rb, line 14
def create_stream(options = {})
  API.create_stream(@credentials, @hub_name, options)
end
get_stream(stream_id) click to toggle source
# File lib/pili/hub.rb, line 19
def get_stream(stream_id)
  API.get_stream(@credentials, stream_id)
end
list_streams(options = {}) click to toggle source
# File lib/pili/hub.rb, line 24
def list_streams(options = {})
  API.list_streams(@credentials, @hub_name, options)
end