From 2d59819c02230ccfd776b5c6f315463012e863cf Mon Sep 17 00:00:00 2001 From: joe Date: Fri, 13 Dec 2013 15:42:31 -0600 Subject: [PATCH] Assign private ip parser --- .../compute/assign_private_ip_addresses.rb | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 lib/fog/aws/parsers/compute/assign_private_ip_addresses.rb diff --git a/lib/fog/aws/parsers/compute/assign_private_ip_addresses.rb b/lib/fog/aws/parsers/compute/assign_private_ip_addresses.rb new file mode 100644 index 000000000..714b29bcd --- /dev/null +++ b/lib/fog/aws/parsers/compute/assign_private_ip_addresses.rb @@ -0,0 +1,25 @@ +module Fog + module Parsers + module Compute + module AWS + + class AssignPrivateIpAddresses < Fog::Parsers::Base + + def end_element(name) + case name + when 'requestId' + @response[name] = value + when 'return' + if value == 'true' + @response[name] = true + else + @response[name] = false + end + end + end + + end + end + end + end +end