Sha256: 664c2431928b16cd20a60e60ee4dc35e568a0582dead0f2e33c8bf6d0f8d4c26
Contents?: true
Size: 604 Bytes
Versions: 4
Compression:
Stored size: 604 Bytes
Contents
module Fog module Parsers module Terremark class Task < Base def reset @response = {} end def start_element(name, attributes) super case name when 'Owner', 'Result', 'Link', 'Error' data = extract_attributes(attributes) @response[name] = data when 'Task' task = extract_attributes(attributes) @response.merge!(task.reject {|key,value| !['endTime', 'href', 'startTime', 'status', 'type'].include?(key)}) end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems