Sha256: e3dcdd1af9c18e39f78a29b5c55d78f036a397eaa75d85ffeab0714c6c1e0e29
Contents?: true
Size: 636 Bytes
Versions: 53
Compression:
Stored size: 636 Bytes
Contents
module Fog module Parsers module Terremark module Shared class GetPublicIps< Fog::Parsers::Base def reset @ip_address = {} @response = { 'PublicIpAddresses' => [] } end def end_element(name) case name when 'Href', 'Name' @ip_address[name.downcase] = value when 'Id' @ip_address['id'] = value.to_i when 'PublicIPAddress' @response['PublicIpAddresses'] << @ip_address @ip_address = {} end end end end end end end
Version data entries
53 entries across 53 versions & 15 rubygems