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: weekdays_decorator.rb
    path of file: ./repos/i-diario/app/decorators
    
    the code of the file until where you have to start completion: class WeekdaysDecorator
  def self.checkbox_collection
    I18n.t('date.day_names').each_with_index.map do |day_name, index|
      OpenStruct.new({ weekday
    
  def self.data_for_select2
    I18n.t('date.day_names').each_with_index.map do |day_name, index|
      { id: index.to_s, name: day_name, text: day_name }
    end.to_json
  end

  def self.data_for_select2_filter
    data = [{ id: 'empty', name: '<option></option>' }]
    I18n.t('date.day_names').each_with_index.map do |day_name, index|
      data << { id: index.to_s, name: day_name }
    end
    data.to_json
  end
end