class AastraXmlApi::PhoneIconEntry
Public Class Methods
new(index, icon)
click to toggle source
Create new icon entry available to be referenced as index. The icon can either be a predefined icon (i.e. Icon:PhoneOnHook) or the actual hex data (as a string) of the icon.
# File lib/aastra_xml_api/phone_icon_entry.rb, line 19 def initialize(index, icon) @index = index @icon = icon end
Public Instance Methods
render()
click to toggle source
Create XML text output for this entry.
# File lib/aastra_xml_api/phone_icon_entry.rb, line 25 def render return "<Icon index=\"#{@index}\">#{@icon}</Icon>\n" end