Module: ObiWan::XmlClient::ListSubscriptions

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

Class Method Summary collapse

Class Method Details

.obi_request(product_class_name, active_only) ⇒ Object



70
71
72
73
74
75
76
77
78
79
# File 'lib/obi-wan/messages.rb', line 70

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