Sha256: 3ffb34f738650147774d54cede5e30b2beb0ab43d5f1e699866eea384260d172
Contents?: true
Size: 653 Bytes
Versions: 11
Compression:
Stored size: 653 Bytes
Contents
module Fog module Parsers module Terremark module Shared class GetNetworkIps< Fog::Parsers::Base def reset @ip_address = {} @response = { 'IpAddresses' => [] } end def start_element(name,attributes=[]) @value = '' end def end_element(name) case name when 'Name', 'Status', 'Server' @ip_address[name.downcase] = @value when 'IpAddress' @response['IpAddresses'] << @ip_address @ip_address = {} end end end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems