Class: Fog::DNS::DNSMadeEasy::Zone
- Inherits:
-
Model
- Object
- Model
- Fog::DNS::DNSMadeEasy::Zone
- Defined in:
- lib/fog/dnsmadeeasy/models/dns/zone.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
13 14 15 16 17 |
# File 'lib/fog/dnsmadeeasy/models/dns/zone.rb', line 13 def destroy requires :identity service.delete_domain(identity) true end |
#records ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/fog/dnsmadeeasy/models/dns/zone.rb', line 19 def records @records ||= begin Fog::DNS::DNSMadeEasy::Records.new( :zone => self, :service => service ) end end |
#save ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/fog/dnsmadeeasy/models/dns/zone.rb', line 28 def save requires :domain data = service.create_domain(domain).body self.identity = data['name'] merge_attributes(data) true end |