class Fog::DNS::Dynect::Zone
Public Class Methods
new(attributes={})
click to toggle source
Calls superclass method
# File lib/fog/dynect/models/dns/zone.rb, line 16 def initialize(attributes={}) super end
Public Instance Methods
destroy()
click to toggle source
# File lib/fog/dynect/models/dns/zone.rb, line 20 def destroy requires :domain service.delete_zone(domain) true end
domain=(new_domain)
click to toggle source
# File lib/fog/dynect/models/dns/zone.rb, line 27 def domain=(new_domain) attributes[:domain] = new_domain.split('/').last end
nameservers()
click to toggle source
# File lib/fog/dynect/models/dns/zone.rb, line 41 def nameservers raise 'nameservers Not Implemented' end
publish()
click to toggle source
# File lib/fog/dynect/models/dns/zone.rb, line 31 def publish requires :identity data = service.put_zone(identity, 'publish' => true) true end
records()
click to toggle source
# File lib/fog/dynect/models/dns/zone.rb, line 37 def records @records ||= Fog::DNS::Dynect::Records.new(:zone => self, :service => service) end
save()
click to toggle source
# File lib/fog/dynect/models/dns/zone.rb, line 45 def save self.ttl ||= 3600 requires :domain, :email, :ttl data = service.post_zone(email, ttl, domain).body['data'] merge_attributes(data) true end