# File lib/fog/dns/models/dnsmadeeasy/record.rb, line 41
        def save
          requires :name, :type, :value, :ttl
          options = {}
          options[:ttl]  = ttl if ttl
          options[:gtdLocation]  = gtd_location if gtd_location

          if type.upcase == 'A'
            options[:password]  = password if password
          end

          if type.upcase == 'HTTPRED'
            options[:description]  = description if description
            options[:keywords]  = keywords if keywords
            options[:title]  = title if title
            options[:redirectType]  = redirect_type if redirect_type
            options[:hardLink]  = hard_link if hard_link
          end

          if id.nil?
            data = connection.create_record(zone.domain, name, type, value, options).body
          else
            data = connection.update_record(zone.domain, id, options).body
          end

          merge_attributes(data)
          true
        end