Class: Exchanger::ResolveNames::Request
- Inherits:
-
Operation::Request
- Object
- Operation::Request
- Exchanger::ResolveNames::Request
- Defined in:
- lib/exchanger/operations/resolve_names.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
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
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/exchanger/operations/resolve_names.rb', line 7 def name @name end |
Instance Method Details
#reset ⇒ Object
Reset request options to defaults.
10 11 12 |
# File 'lib/exchanger/operations/resolve_names.rb', line 10 def reset @name = nil end |
#to_xml ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/exchanger/operations/resolve_names.rb', line 14 def to_xml Nokogiri::XML::Builder.new do |xml| xml.send("soap:Envelope", "xmlns:soap" => NS["soap"]) do xml.send("soap:Body") do xml.ResolveNames("xmlns" => NS["m"], "xmlns:t" => NS["t"], "ReturnFullContactData" => "true") do xml.UnresolvedEntry name end end end end end |