class AastraXmlApi::PhoneConfigurationEntry
Public Class Methods
new(parameter, value)
click to toggle source
Create a new parameter/value pair. This overrides the initialize method in Phone
.
# File lib/aastra_xml_api/phone_configuration_entry.rb, line 17 def initialize(parameter, value) @parameter = parameter @value = value end
Public Instance Methods
render()
click to toggle source
Create XML text output for this entry.
# File lib/aastra_xml_api/phone_configuration_entry.rb, line 33 def render parameter = escape(@parameter) value = escape(@value) xml = "<ConfigurationItem>\n" xml += "<Parameter>#{parameter}</Parameter>\n" xml += "<Value>#{value}</Value>\n" xml += "</ConfigurationItem>\n" return xml end
setParameter(parameter)
click to toggle source
Set the parameter for this entry.
# File lib/aastra_xml_api/phone_configuration_entry.rb, line 23 def setParameter(parameter) @parameter = parameter end
setValue(value)
click to toggle source
Set the value for this entry.
# File lib/aastra_xml_api/phone_configuration_entry.rb, line 28 def setValue(value) @value = value end