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

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

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Zone

Returns a new instance of Zone.



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

def initialize(attributes={})
  super
end

Instance Method Details

#delegationObject



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

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

#destroyObject



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

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

#update(options = {}) ⇒ Object



31
32
33
34
# File 'lib/fog/storm_on_demand/models/dns/zone.rb', line 31

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