# File lib/fog/dns/models/linode/record.rb, line 40
        def save
          requires :type, :zone
          options = {}
          # * options<~Hash>
          #   * weight<~Integer>: default: 5
          #   * port<~Integer>: default: 80 
          #   * protocol<~String>: The protocol to append to an SRV record. Ignored on other record 
          #                        types. default: udp
          options[:name]      = name if name
          options[:priority]  = priority if priority
          options[:target]    = value if value
          options[:ttl_sec]   = ttl if ttl
          response = unless identity
            connection.domain_resource_create(zone.identity, type, options)
          else
            options[:type] = type if type
            connection.domain_resource_update(zone.identity, identity, options)
          end
          merge_attributes(response.body['DATA'])
          true
        end