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

require "store_model/types"
require "store_model/enum"
require "store_model/type_builders"
require "store_model/nested_attributes"

module StoreModel
  # When inclu
    
    def fetch(attr_name)
      stringified_key = attr_name.to_s
      if attribute_names.include?(stringified_key) || attribute_aliases.key?(stringified_key)
        public_send(stringified_key)
      else
        message = attr_name.is_a?(Symbol) ? "key not found: :#{attr_name}" : "key not found: #{attr_name}"
        raise KeyError, message
      end