# File lib/fog/zerigo/models/dns/record.rb, line 30 def destroy requires :identity connection.delete_host(identity) true end
# File lib/fog/zerigo/models/dns/record.rb, line 40 def save requires :zone, :type, :value options = {} options[:hostname] = name if name options[:notes] = description if description options[:priority] = priority if priority options[:ttl] = ttl if ttl data = unless identity connection.create_host(@zone.id, type, value, options) else options[:host_type] = type options[:data] = value connection.update_host(identity, options) end merge_attributes(data.body) true end
Generated with the Darkfish Rdoc Generator 2.