Module: ObiWan::XmlClient::ListInstruments

Defined in:
lib/obi-wan/messages.rb

Class Method Summary collapse

Class Method Details

.obi_request(detail_level) ⇒ Object



109
110
111
112
113
114
115
116
117
# File 'lib/obi-wan/messages.rb', line 109

def self.obi_request(detail_level)
  builder = Nokogiri::XML::Builder.new do 
    request('xmlns' => 'http://biz.aol.com/schema/2006-12-18') { 
      listInstruments  {
        paymentDetailLevel detail_level
      }
    }
  end.doc.to_xml
end