Class: Fog::DNS::StormOnDemand::Zone

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/dns/storm_on_demand/models/zone.rb

Instance Method Summary collapse

Instance Method Details

#delegationObject



15
16
17
18
# File 'lib/fog/dns/storm_on_demand/models/zone.rb', line 15

def delegation
  requires :identity
  service.check_zone_delegation(:id => identity).body["delegation"]
end

#destroyObject



20
21
22
23
# File 'lib/fog/dns/storm_on_demand/models/zone.rb', line 20

def destroy
  requires :identity
  service.delete_zone(:id => identity).body["deleted"]
end

#update(options = {}) ⇒ Object



25
26
27
28
# File 'lib/fog/dns/storm_on_demand/models/zone.rb', line 25

def update(options = {})
  requires :identity
  service.update_zone({:id => identity}.merge!(options))
end