Class: Fog::DNS::Dreamhost::Record
- Inherits:
-
Model
- Object
- Model
- Fog::DNS::Dreamhost::Record
- Defined in:
- lib/fog/dreamhost/models/dns/record.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
16 17 18 19 |
# File 'lib/fog/dreamhost/models/dns/record.rb', line 16 def destroy service.delete_record(name, type, value) true end |
#save ⇒ Object
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 |