class AastraXmlApi::PhoneDirectoryEntry
Public Class Methods
new(name, telephone)
click to toggle source
Create new name and number entry. Overrides the initialize method of Phone
.
# File lib/aastra_xml_api/phone_directory_entry.rb, line 17 def initialize(name, telephone) @name = name @telephone = telephone end
Public Instance Methods
getName()
click to toggle source
Get the name associated with this entry.
# File lib/aastra_xml_api/phone_directory_entry.rb, line 23 def getName @name end
render()
click to toggle source
Create XML text output for this entry.
# File lib/aastra_xml_api/phone_directory_entry.rb, line 28 def render name = escape(@name) telephone = escape(@telephone) return "<MenuItem>\n<Prompt>#{name}</Prompt>\n<URI>#{telephone}</URI>\n</MenuItem>\n" end