Sha256: 2aa486f184b5933242e59f4ba4c4d52dfc4cecef13d5486372b7a617dc95f537
Contents?: true
Size: 593 Bytes
Versions: 9
Compression:
Stored size: 593 Bytes
Contents
module Fog module Parsers module TerremarkEcloud module Compute class GetIpAddresses < Fog::Parsers::Base def reset @response = { 'IpAddresses' => [] } @ip_address = {} end def end_element(name) case name when 'Id', 'Href', 'Name', 'RnatAddress', 'Server', 'Status' @ip_address[name] = @value when 'IpAddress' @response['IpAddresses'] << @ip_address @ip_address = {} end end end end end end end
Version data entries
9 entries across 9 versions & 2 rubygems