# File lib/fog/dns/models/zerigo/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] = data connection.update_host(identity, options) end merge_attributes(data.body) true end