Sha256: 8b1cf8173845db96367e8843a7899a9a924715cd269fb106fa6824f3c40dad5b
Contents?: true
Size: 565 Bytes
Versions: 53
Compression:
Stored size: 565 Bytes
Contents
module Fog module Parsers module Terremark module Shared class GetNetworkIps< Fog::Parsers::Base def reset @ip_address = {} @response = { 'IpAddresses' => [] } 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
53 entries across 53 versions & 15 rubygems