Class: Fog::Parsers::Terremark::NodeService
- Defined in:
- lib/fog/parsers/terremark/node_service.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#end_element(name) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fog/parsers/terremark/node_service.rb', line 9 def end_element(name) case name when "Description", "Href", "IpAddress", "Name", "Protocol" @response[name] = value when "Enabled" if value == "false" @response[name] = false else @response[name] = true end when "Id", "Port" @response[name] = value.to_i end end |
#reset ⇒ Object
5 6 7 |
# File 'lib/fog/parsers/terremark/node_service.rb', line 5 def reset @response = {} end |