Class: Exchanger::ResolveNames::Request

Inherits:
Operation::Request show all
Defined in:
lib/exchanger/operations/resolve_names.rb

Instance Attribute Summary collapse

Attributes inherited from Operation::Request

#body, #response

Instance Method Summary collapse

Methods inherited from Operation::Request

#action, #headers, #initialize

Constructor Details

This class inherits a constructor from Exchanger::Operation::Request

Instance Attribute Details

#nameObject

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

#resetObject

Reset request options to defaults.


10
11
12
# File 'lib/exchanger/operations/resolve_names.rb', line 10

def reset
  @name = nil
end

#to_xmlObject


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