Class: AastraXmlApi::PhoneExecuteEntry
- Defined in:
- lib/aastra_xml_api/phone_execute_entry.rb
Constant Summary
Constants inherited from Phone
AastraXmlApi::Phone::HIGHASCII
Instance Method Summary collapse
-
#initialize(url, interruptCall) ⇒ PhoneExecuteEntry
constructor
Create a new action to be performed.
-
#render ⇒ Object
Create XML text output for this entry.
Methods inherited from Phone
#addIcon, #addSoftkey, #convert_high_ascii, #escape, #getRefreshTimeout, #getRefreshURL, #setAllowAnswer, #setBeep, #setCancelAction, #setDestroyOnExit, #setLockIn, #setRefresh, #setTimeout, #setTitle, #setTitleWrap
Constructor Details
#initialize(url, interruptCall) ⇒ PhoneExecuteEntry
Create a new action to be performed. if interruptCall is not nil then a currently active call can be interrupted by this action.
18 19 20 21 |
# File 'lib/aastra_xml_api/phone_execute_entry.rb', line 18 def initialize(url, interruptCall) @url = url @interruptCall = interruptCall end |
Instance Method Details
#render ⇒ Object
Create XML text output for this entry.
24 25 26 27 28 29 30 |
# File 'lib/aastra_xml_api/phone_execute_entry.rb', line 24 def render url = escape(@url) xml = "<ExecuteItem URI=\"#{url}\"" xml += " interruptCall=\"no\"" if @interruptCall == "no" xml += "/>\n" return xml end |