lib/connfu/provisioning/voice.rb in connfu-client-0.1.2 vs lib/connfu/provisioning/voice.rb in connfu-client-0.1.3
- old
+ new
@@ -1,6 +1,5 @@
-require 'connfu/provisioning/whitelist'
module Connfu
module Provisioning
@@ -13,11 +12,11 @@
WHITELIST = "whitelisted"
PUBLIC = "public"
end
# Voice channel attributes that could be updated
- UPDATE_ATTRIBUTES = ["topic", "welcome_message", "rejected_message", "privacy"]
+ UPDATE_ATTRIBUTES = ["topic", "welcome_message", "rejected_message", "privacy", "type"]
_values = UPDATE_ATTRIBUTES.dup
_values.each { |value|
UPDATE_ATTRIBUTES << value.to_sym
}
@@ -37,14 +36,14 @@
# be whitelisted to join the conference
attr_accessor :privacy
def initialize(params)
super(params)
- self.type = "voice"
+ self.channel_type = "voice"
end
def to_hash
- {"uid" => uid, "type" => type, "phones" => phones.map(&:to_hash)}
+ {"uid" => uid, "channel_type" => channel_type, "phones" => phones.map(&:to_hash)}
end
# access the Voice channel Whitelist
def whitelist
Whitelist.new(@name)
\ No newline at end of file