Module: Fog::ProfitBricks
- Extended by:
- Provider
- Defined in:
- lib/fog/profitbricks.rb,
lib/fog/profitbricks/version.rb
Constant Summary collapse
- VERSION =
"0.0.4"
Class Method Summary collapse
Class Method Details
.construct_envelope(&block) ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/fog/profitbricks.rb', line 26 def self.construct_envelope(&block) namespaces = { "xmlns" => "", "xmlns:soapenv" => "http://schemas.xmlsoap.org/soap/envelope/", "xmlns:ws" => "http://ws.api.profitbricks.com/" } Nokogiri::XML::Builder.new do |xml| xml[:soapenv].Envelope(namespaces) do xml[:soapenv].Header xml[:soapenv].Body(&block) end end end |