class AastraXmlApi::PhoneExecuteEntry

Public Class Methods

new(url, interruptCall) click to toggle source

Create a new action to be performed. if interruptCall is not nil then a currently active call can be interrupted by this action.

# File lib/aastra_xml_api/phone_execute_entry.rb, line 18
def initialize(url, interruptCall)
  @url = url
  @interruptCall = interruptCall
end

Public Instance Methods

render() click to toggle source

Create XML text output for this entry.

# 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