class Plivo::XML::PlivoXML

Attributes

response[RW]

Public Class Methods

new(response = nil) click to toggle source
# File lib/plivo/xml/plivo_xml.rb, line 6
def initialize(response = nil)
  response.nil? ? @response = Plivo::XML::Response.new : @response = response
end

Public Instance Methods

to_s() click to toggle source
# File lib/plivo/xml/plivo_xml.rb, line 14
def to_s
  '<?xml version="1.0" encoding="utf-8" ?>' + @response.to_s.gsub("&quot;", "\"")
end
to_xml() click to toggle source
# File lib/plivo/xml/plivo_xml.rb, line 10
def to_xml
  '<?xml version="1.0" encoding="utf-8" ?>' + @response.to_xml.gsub("&quot;", "\"")
end