Class: Fog::Parsers::Terremark::Task
- Defined in:
- lib/fog/parsers/terremark/task.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#reset ⇒ Object
5 6 7 |
# File 'lib/fog/parsers/terremark/task.rb', line 5 def reset @response = {} end |
#start_element(name, attributes) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/parsers/terremark/task.rb', line 9 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 |