class Psapi::Channel
Attributes
channel_id[RW]
info[RW]
status[RW]
track[RW]
Public Class Methods
find(id)
click to toggle source
# File lib/psapi/channel.rb, line 4 def self.find(id) Channel.new({ 'channelId' => id, 'status' => getChannelStatus(id) }.merge(getChannelInfo(id))) end
new(hash = {})
click to toggle source
Calls superclass method
Psapi::API_Object::new
# File lib/psapi/channel.rb, line 12 def initialize(hash = {}) super @status = Status.new(hash['status'] || {}) @info = Info.new(hash['info'] || {}) @track = Track.new(hash['track']) @yellow_pages = (hash['yellowPages'] || []) end
Public Instance Methods
broadcast()
click to toggle source
# File lib/psapi/channel.rb, line 47 def broadcast end
bump()
click to toggle source
# File lib/psapi/channel.rb, line 50 def bump end
connections()
click to toggle source
# File lib/psapi/channel.rb, line 44 def connections end
info=(channel_info)
click to toggle source
# File lib/psapi/channel.rb, line 41 def info=(channel_info) end
outputs()
click to toggle source
# File lib/psapi/channel.rb, line 53 def outputs end
relay_tree()
click to toggle source
# File lib/psapi/channel.rb, line 56 def relay_tree # tree of sessions end
restart_announce(yellow_page)
click to toggle source
このチャンネルの yellow_page へのアナウンス接続をはりなおす
# File lib/psapi/channel.rb, line 65 def restart_announce(yellow_page) end
stop()
click to toggle source
# File lib/psapi/channel.rb, line 38 def stop end
stop_announce(yellow_page)
click to toggle source
このチャンネルの yellow_page へのアナウンス接続を切断する
# File lib/psapi/channel.rb, line 61 def stop_announce(yellow_page) end
yellow_pages()
click to toggle source
# File lib/psapi/channel.rb, line 21 def yellow_pages yps = YellowPage.all @yellow_pages.map { |yellowPageId:| yps.find { |y| y.yellow_page_id == yellowPageId } or fail "yellow page id #{yellowPageId} not found" } end