module QbwcRequests::XmlActions

Public Class Methods

header() click to toggle source
# File lib/qbwc_requests/xml_actions.rb, line 23
def self.header
  {"qbxml"=>
    {"xml_attributes"=>{}, "qbxml_msgs_rq"=>
      {"xml_attributes"=>{"onError"=>"stopOnError"}}
    }
  }
end
header_attributes(attributes = {}) click to toggle source
# File lib/qbwc_requests/xml_actions.rb, line 15
def self.header_attributes attributes = {}
  hash = {}
  if attributes
    hash["requestID"] = attributes["requestID"] if attributes["requestID"]
  end
  hash
end
query(req, options, header) click to toggle source
# File lib/qbwc_requests/xml_actions.rb, line 3
def self.query req, options, header
   hash = {"qbxml"=>
           {"xml_attributes"=> {},
            "qbxml_msgs_rq"=>
             {"xml_attributes" => {"onError"=>"stopOnError"},
              "#{req}"=>
               {"xml_attributes"=> self.header_attributes(header)}.merge(options)
             }
           }
         }
 end