Class: Exchanger::GetUserConfiguration::Request

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

Instance Attribute Summary collapse

Attributes inherited from Operation::Request

#body, #response

Instance Method Summary collapse

Methods inherited from Operation::Request

#action, #headers, #initialize, #reset

Constructor Details

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

Instance Attribute Details

#folder_idObject

Returns the value of attribute folder_id.



7
8
9
# File 'lib/exchanger/operations/get_user_configuration.rb', line 7

def folder_id
  @folder_id
end

#user_configuration_nameObject

Returns the value of attribute user_configuration_name.



7
8
9
# File 'lib/exchanger/operations/get_user_configuration.rb', line 7

def user_configuration_name
  @user_configuration_name
end

Instance Method Details

#to_xmlObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/exchanger/operations/get_user_configuration.rb', line 9

def to_xml
  Nokogiri::XML::Builder.new do |xml|
    xml.send("soap:Envelope", "xmlns:soap" => NS["soap"]) do
      xml.send("soap:Body") do
        xml.GetUserConfiguration("xmlns" => NS["m"], "xmlns:t" => NS["t"]) do
          xml.send("UserConfigurationName", "Name" => user_configuration_name) do
            xml.send("t:FolderId", "Id" => folder_id)
          end
          xml.send "UserConfigurationProperties", "All"
        end
      end
    end
  end
end