mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Assign private ip parser
This commit is contained in:
parent
67351bb795
commit
2d59819c02
1 changed files with 25 additions and 0 deletions
25
lib/fog/aws/parsers/compute/assign_private_ip_addresses.rb
Normal file
25
lib/fog/aws/parsers/compute/assign_private_ip_addresses.rb
Normal file
|
@ -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
|
Loading…
Reference in a new issue