# File lib/fog/slicehost/models/dns/record.rb, line 28 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/record.rb, line 37 def destroy requires :identity connection.delete_record(identity) true end
# File lib/fog/slicehost/models/dns/record.rb, line 47 def save requires :name, :type, :value, :zone options = {} options[:active] = active ? 'Y' : 'N' options[:aux] = description if description options[:ttl] = ttl if ttl if identity data = connection.update_record(identity, type, zone.id, name, value, options) else data = connection.create_record(type, zone.id, name, value, options) end merge_attributes(data.body) true end
Generated with the Darkfish Rdoc Generator 2.