Class: Fog::Parsers::Bluebox::DNS::GetZone
- Inherits:
-
Fog::Parsers::Base
- Object
- Nokogiri::XML::SAX::Document
- Fog::Parsers::Base
- Fog::Parsers::Bluebox::DNS::GetZone
- Defined in:
- lib/fog/dns/parsers/bluebox/get_zone.rb
Instance Attribute Summary
Attributes inherited from Fog::Parsers::Base
Instance Method Summary collapse
Methods inherited from Fog::Parsers::Base
#attr_value, #characters, #initialize, #start_element
Constructor Details
This class inherits a constructor from Fog::Parsers::Base
Instance Method Details
#end_element(name) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/fog/dns/parsers/bluebox/get_zone.rb', line 11 def end_element(name) case name when 'serial', 'ttl', 'retry', 'expires', 'record-count', 'refresh', 'minimum' @response[name] = @value.to_i when 'name', 'id' @response[name] = @value end end |
#reset ⇒ Object
7 8 9 |
# File 'lib/fog/dns/parsers/bluebox/get_zone.rb', line 7 def reset @response = {} end |