Class: Fog::DNS::StormOnDemand::Zone
- Inherits:
-
Model
- Object
- Model
- Fog::DNS::StormOnDemand::Zone
- Defined in:
- lib/fog/storm_on_demand/models/dns/zone.rb
Instance Method Summary collapse
- #delegation ⇒ Object
- #destroy ⇒ Object
-
#initialize(attributes = {}) ⇒ Zone
constructor
A new instance of Zone.
- #update(options = {}) ⇒ Object
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
#delegation ⇒ Object
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 |
#destroy ⇒ Object
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(={}) requires :identity service.update_zone({:id => identity}.merge!()) end |