Class: AastraXmlApi::PhoneImageMenuEntry

Inherits:
Phone
  • Object
show all
Defined in:
lib/aastra_xml_api/phone_image_menu_entry.rb

Constant Summary

Constants inherited from Phone

AastraXmlApi::Phone::HIGHASCII

Instance Method Summary collapse

Methods inherited from Phone

#addIcon, #addSoftkey, #convert_high_ascii, #escape, #getRefreshTimeout, #getRefreshURL, #setAllowAnswer, #setBeep, #setCancelAction, #setDestroyOnExit, #setLockIn, #setRefresh, #setTimeout, #setTitle, #setTitleWrap

Constructor Details

#initialize(key, uri) ⇒ PhoneImageMenuEntry

Create a new mapping for a user pressed key and a URI to call.



17
18
19
20
# File 'lib/aastra_xml_api/phone_image_menu_entry.rb', line 17

def initialize(key, uri)
  @key = key
  @uri = uri
end

Instance Method Details

#renderObject

Create XML text output for this entry.



23
24
25
# File 'lib/aastra_xml_api/phone_image_menu_entry.rb', line 23

def render
  return "<URI key=\"#{@key}\">#{escape(@uri)}</URI>\n"
end