class Mumble::Channel

Public Instance Methods

children() click to toggle source
# File lib/mumble-ruby2/channel.rb, line 18
def children
  client.channels.values.select do |channel|
    channel.parent_id == channel_id
  end
end
join() click to toggle source
# File lib/mumble-ruby2/channel.rb, line 36
def join
  client.join_channel(self)
end
linked_channels() click to toggle source
# File lib/mumble-ruby2/channel.rb, line 24
def linked_channels
  links.map do |channel_id|
    client.channels[channel_id]
  end
end
parent() click to toggle source
# File lib/mumble-ruby2/channel.rb, line 14
def parent
  client.channels[parent_id]
end
send_image(file) click to toggle source
# File lib/mumble-ruby2/channel.rb, line 44
def send_image(file)
  client.text_channel_img(self, file)
end
send_text(string) click to toggle source
# File lib/mumble-ruby2/channel.rb, line 40
def send_text(string)
  client.text_channel(self, string)
end
users() click to toggle source
# File lib/mumble-ruby2/channel.rb, line 30
def users
  client.users.values.select do |user|
    user.channel_id == channel_id
  end
end