Module: Fog::ProfitBricks
- Extended by:
- Provider
- Defined in:
- lib/fog/profitbricks.rb,
lib/fog/profitbricks/core.rb,
lib/fog/profitbricks/version.rb
Constant Summary collapse
- VERSION =
"0.0.1"
Class Method Summary collapse
Class Method Details
.construct_envelope(&block) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/fog/profitbricks/core.rb', line 3 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 |