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: toggle_component.rb
    path of file: ./repos/gitlabhq/app/components/pajamas
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# Renders a GlToggle root element
# To actually initialize the component, make sure to call the initToggle helper from ~/toggles.
class Pajamas::ToggleComponent < Pajamas::Component
  LABEL_POSIT
    
  def initialize(
    classes:, label: nil, label_position: nil,
    id: nil, name: nil, help: nil, data: {},
    is_disabled: false, is_checked: false, is_loading: false)

    @id = id
    @name = name
    @classes = classes
    @label = label
    @label_position = filter_attribute(label_position, LABEL_POSITION_OPTIONS)
    @help = help
    @data = data
    @is_disabled = is_disabled
    @is_checked = is_checked
    @is_loading = is_loading
  end