class AastraXmlApi::PhoneConfiguration

Public Instance Methods

addEntry(parameter, value) click to toggle source

Adds a parameter and value entry to the list.

# File lib/aastra_xml_api/phone_configuration.rb, line 33
def addEntry(parameter, value)
  @entries += [PhoneConfigurationEntry.new(parameter, value)]
end
render() click to toggle source

Create XML text output.

# File lib/aastra_xml_api/phone_configuration.rb, line 44
def render
  out = "<AastraIPPhoneConfiguration"
  out += " Beep=\"yes\"" if @beep == "yes"
  out += " triggerDestroyOnExit=\"yes\"" if @triggerDestroyOnExit == "yes"
  out += ">\n"
  @entries.each do |entry|
    out += entry.render
  end
  out += "</AastraIPPhoneConfiguration>\n"
  return out
end
setTriggerDestroyOnExit() click to toggle source

When set, the previous user interface XML object is destroyed if its destroyOnExit tag is also set to yes.

# File lib/aastra_xml_api/phone_configuration.rb, line 39
def setTriggerDestroyOnExit
  @triggerDestroyOnExit = "yes"
end