# File lib/fog/dnsimple/models/dns/record.rb, line 37 def save requires :name, :type, :value options = {} options[:prio] = priority if priority options[:ttl] = ttl if ttl # decide whether its a new record or update of an existing if id.nil? data = connection.create_record(zone.domain, name, type, value, options) else options[:name] = name if name options[:content] = value if value options[:type] = type if type data = connection.update_record(zone.domain, id, options) end merge_attributes(data.body["record"]) true end