class AastraXmlApi::PhoneImageMenuEntry

Public Class Methods

new(key, uri) click to toggle source

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

# File lib/aastra_xml_api/phone_image_menu_entry.rb, line 17
def initialize(key, uri)
  @key = key
  @uri = uri
end

Public Instance Methods

render() click to toggle source

Create XML text output for this entry.

# File lib/aastra_xml_api/phone_image_menu_entry.rb, line 23
def render
  return "<URI key=\"#{@key}\">#{escape(@uri)}</URI>\n"
end