Class: AastraXmlApi::PhoneIconEntry
- Inherits:
-
Object
- Object
- AastraXmlApi::PhoneIconEntry
- Defined in:
- lib/aastra_xml_api/phone_icon_entry.rb
Instance Method Summary collapse
-
#initialize(index, icon) ⇒ PhoneIconEntry
constructor
Create new icon entry available to be referenced as index.
-
#render ⇒ Object
Create XML text output for this entry.
Constructor Details
#initialize(index, icon) ⇒ PhoneIconEntry
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.
19 20 21 22 |
# File 'lib/aastra_xml_api/phone_icon_entry.rb', line 19 def initialize(index, icon) @index = index @icon = icon end |
Instance Method Details
#render ⇒ Object
Create XML text output for this entry.
25 26 27 |
# File 'lib/aastra_xml_api/phone_icon_entry.rb', line 25 def render return "<Icon index=\"#{@index}\">#{@icon}</Icon>\n" end |