Class: Fog::DNS::Dreamhost::Record

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

Instance Method Summary collapse

Instance Method Details

#destroyObject



16
17
18
19
# File 'lib/fog/dreamhost/models/dns/record.rb', line 16

def destroy
  service.delete_record(name, type, value)
  true
end

#saveObject



21
22
23
24
25
26
27
# File 'lib/fog/dreamhost/models/dns/record.rb', line 21

def save
  requires :name, :type, :value

  data = service.create_record(name, type, value, comment).body
  merge_attributes(data)
  true
end