Class: Fog::DNS::Rackspace::Zone

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

Instance Method Summary collapse

Instance Method Details

#destroyObject



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

#recordsObject



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

#saveObject



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