# File lib/fog/slicehost/models/dns/zone.rb, line 22 def active=(new_active) attributes[:active] = case new_active when false, 'N' false when true, 'Y' true end end
# File lib/fog/slicehost/models/dns/zone.rb, line 31 def destroy requires :identity connection.delete_zone(identity) true end
# File lib/fog/slicehost/models/dns/zone.rb, line 46 def nameservers [ 'ns1.slicehost.net', 'ns2.slicehost.net', 'ns3.slicehost.net' ] end
# File lib/fog/slicehost/models/dns/zone.rb, line 37 def records @records ||= begin Fog::DNS::Slicehost::Records.new( :zone => self, :connection => connection ).all end end
# File lib/fog/slicehost/models/dns/zone.rb, line 54 def save raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if identity requires :active, :domain, :ttl options = {} options[:active] = active ? 'Y' : 'N' options[:ttl] = ttl data = connection.create_zone(domain, options) merge_attributes(data.body) true end
Generated with the Darkfish Rdoc Generator 2.