Class: Exchanger::DeleteAttachment::Request
- Inherits:
-
Operation::Request
- Object
- Operation::Request
- Exchanger::DeleteAttachment::Request
- Defined in:
- lib/exchanger/operations/delete_attachment.rb
Instance Attribute Summary collapse
-
#attachment_ids ⇒ Object
Returns the value of attribute attachment_ids.
Attributes inherited from Operation::Request
Instance Method Summary collapse
-
#reset ⇒ Object
Reset request options to defaults.
- #to_xml ⇒ Object
Methods inherited from Operation::Request
#action, #headers, #initialize
Constructor Details
This class inherits a constructor from Exchanger::Operation::Request
Instance Attribute Details
#attachment_ids ⇒ Object
Returns the value of attribute attachment_ids.
7 8 9 |
# File 'lib/exchanger/operations/delete_attachment.rb', line 7 def @attachment_ids end |
Instance Method Details
#reset ⇒ Object
Reset request options to defaults.
10 11 12 |
# File 'lib/exchanger/operations/delete_attachment.rb', line 10 def reset @attachment_ids = [] end |
#to_xml ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/exchanger/operations/delete_attachment.rb', line 14 def to_xml Nokogiri::XML::Builder.new do |xml| xml.send("soap:Envelope", "xmlns:soap" => NS["soap"], "xmlns:t" => NS["t"], "xmlns:xsi" => NS["xsi"], "xmlns:xsd" => NS["xsd"]) do xml.send("soap:Body") do xml.DeleteAttachment("xmlns" => NS["m"]) do xml.AttachmentIds do .each do || xml["t"].AttachmentId("Id" => ) end end end end end end end |