Sha256: b6f09fd368451cb5339de2bb53510a4588df913eccfbcd7c79a59db365a0132c
Contents?: true
Size: 767 Bytes
Versions: 61
Compression:
Stored size: 767 Bytes
Contents
module Fog module Parsers module Terremark module Shared class GetVappTemplate < TerremarkParser def reset @response = { 'Links' => [] } end def start_element(name, attributes) super case name when 'Link' link = extract_attributes(attributes) @response['Links'] << link when 'VAppTemplate' vapp_template = extract_attributes(attributes) @response['name'] = vapp_template['name'] end end def end_element(name) if name == 'Description' @response['Description'] = value end end end end end end end
Version data entries
61 entries across 61 versions & 6 rubygems