You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: filter_links_component.rb
    path of file: ./repos/consuldemocracy/app/components/sdg
    
    the code of the file until where you have to start completion: class SDG::FilterLinksComponent < ApplicationComponent
  attr_reader :records, :related_model, :see_more_link
  delegate :link_list, to: :helpers

  def initialize(records, related_model, see_more_link: nil)
    @records = recor
    
    def sdg_links
      records.map do |goal_or_target|
        [
          render(SDG::TagComponent.new(goal_or_target)),
          index_by(parameter_name => goal_or_target.code),
          title: filter_text(goal_or_target),
          data: { code: goal_or_target.code }
        ]
      end
    end