Sha256: d290e56ae77a1d939f750c91c54dc40ada2760488c36c1c773686123834dd28b
Contents?: true
Size: 775 Bytes
Versions: 72
Compression:
Stored size: 775 Bytes
Contents
module Fog module Parsers module Terremark module Shared class GetOrganizations < Fog::Parsers::Base def reset @response = { 'OrgList' => [] } end def start_element(name, attributes) super if name == 'Org' organization = {} until attributes.empty? if attributes.first.is_a?(Array) attribute = attributes.shift organization[attribute.first] = attribute.last else organization[attributes.shift] = attributes.shift end end @response['OrgList'] << organization end end end end end end end
Version data entries
72 entries across 72 versions & 16 rubygems