module SoarSc::Web::Views::XML
Public Class Methods
error()
click to toggle source
# File lib/soar_sc_views/xml.rb, line 13 def self.error body = ex.message [500, {"Content-Type" => "application/xml"}, [body]] end
not_found()
click to toggle source
# File lib/soar_sc_views/xml.rb, line 9 def self.not_found [404, "", []] end
render(http_code, body)
click to toggle source
# File lib/soar_sc_views/xml.rb, line 5 def self.render(http_code, body) [http_code, {"Content-Type" => "application/xml"}, [body]] end