# File lib/fog/zerigo/models/dns/record.rb, line 30 def destroy requires :identity service.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 if persisted? options[:host_type] = type options[:data] = value service.update_host(identity, options) else data = service.create_host(@zone.id, type, value, options) merge_attributes(data.body) end true end
Generated with the Darkfish Rdoc Generator 2.