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: dimension.rb
    path of file: ./repos/active_reporting/lib/active_reporting
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module ActiveReporting
  class Dimension
    TYPES = { degenerate: :degenerate, standard: :standard }.freez
    
    def type
      @type ||= if model.column_names.include?(@name)
                  TYPES[:degenerate]
                elsif association
                  TYPES[:standard]
                else
                  raise UnknownDimension, "Dimension '#{@name}' not found on fact model '#{@fact_model}'"
                end