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: item.rb
    path of file: ./repos/workarea/core/app/models/workarea/fulfillment
    
    the code of the file until where you have to start completion: module Workarea
  class Fulfillment
    class Item
      include ApplicationDocument
    
      def method_missing(method_name, *args)
        if method_name =~ /^quantity_/
          status = method_name.to_s.gsub(/^quantity_/, '')
          events.where(status: status).sum(&:quantity)
        else
          super
        end