Module: ObiWan::XmlClient::CancelOffer
- Defined in:
- lib/obi-wan/messages.rb
Class Method Summary collapse
Class Method Details
.obi_request(offer_subscription_id, type, reason_text = nil, code = nil, language_code = nil) ⇒ Object
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/obi-wan/messages.rb', line 51 def self.obi_request(offer_subscription_id, type, reason_text=nil, code=nil, language_code=nil) builder = Nokogiri::XML::Builder.new do request('xmlns' => 'http://biz.aol.com/schema/2006-12-18') { cancelOffer { cancelOfferDetail { offerSubscriptionId offer_subscription_id reason { text reason_text languageCode code } actionType type } } } end.doc.to_xml end |