1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/slicehost/parsers/compute/create_zone.rb
Athir Nuaimi b1ddc8bf7a completed adding all the Slicehost DNS zone functions
can now add/edit/delete zones in the Slicehost DNS service. Includes the methods create_zone, delete_zone, get_zones, get_zone.  Note, there are no mocks or test cases.
2010-12-09 14:14:48 -05:00

26 lines
454 B
Ruby

module Fog
module Parsers
module Slicehost
module Compute
class CreateZone < Fog::Parsers::Base
def reset
@response = {}
end
def end_element(name)
case name
when 'ttl', 'id'
@response[name] = @value.to_i
when 'origin', 'active'
@response[name] = @value
end
end
end
end
end
end
end