module Headlines
  module SecurityHeaders
    class SecurityHeader
      attr_reader :params

      def initialize(header)
        @header = header[1]
        @params = { value: @header, enabled: true }
      end

      def score
        @params[:enabled] ? 1 : 0
      end
    end
  end
end

module Headlines
  module SecurityHeaders
    class SecurityHeader
      attr_reader :name, :params

      def initialize(header)
        @name = header[0]
        @header = header[1]
        @params = { value: @header, enabled: true }
      end

      def score
        @params[:enabled] ? 1 : 0
      end
    end
  end
end

Add name attribute to security header
Add name attribute to security header
