Class: Fog::DNS::Rackspace::Zone
- Inherits:
-
Model
- Object
- Model
- Fog::DNS::Rackspace::Zone
- Includes:
- Callback
- Defined in:
- lib/fog/rackspace/models/dns/zone.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
21 22 23 24 25 |
# File 'lib/fog/rackspace/models/dns/zone.rb', line 21 def destroy response = service.remove_domain(identity) wait_for_job response.body['jobId'], Fog.timeout true end |
#records ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'lib/fog/rackspace/models/dns/zone.rb', line 27 def records @records ||= begin Fog::DNS::Rackspace::Records.new( :zone => self, :service => service ) end end |
#save ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'lib/fog/rackspace/models/dns/zone.rb', line 36 def save if persisted? update else create end true end |