Class: Fog::Parsers::Terremark::GetVappTemplate
- Defined in:
- lib/fog/parsers/terremark/get_vapp_template.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#end_element(name) ⇒ Object
21 22 23 24 25 |
# File 'lib/fog/parsers/terremark/get_vapp_template.rb', line 21 def end_element(name) if name == "Description" @response["Description"] = value end end |
#reset ⇒ Object
5 6 7 |
# File 'lib/fog/parsers/terremark/get_vapp_template.rb', line 5 def reset @response = { "Links" => [] } end |
#start_element(name, attributes) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/parsers/terremark/get_vapp_template.rb', line 9 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 |