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: parameter.rb
    path of file: ./repos/foreman/app/models
    
    the code of the file until where you have to start completion: class Parameter < ApplicationRecord
  extend FriendlyId
  friendly_id :name
  include Parameterizable::ByIdName
  include HiddenValue
  include KeyType
  include KeyValueValidation

  validates_lengths_from_database

  include Authorizable
  val
    
  def hash_for_include_source(source, source_name = nil)
    options = {
      :value => value, :source => source, :key_type => key_type,
      :safe_value => safe_value, :parameter_type => parameter_type,
      :hidden_value? => hidden_value?,
      :searchable_value => searchable_value
    }
    options[:source_name] = source_name if source_name
    options
  end