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: build_status.rb
    path of file: ./repos/foreman/app/models/host_status
    
    the code of the file until where you have to start completion: module HostStatus
  class BuildStatus < Status
    PENDING
    
    def to_global(options = {})
      status = to_status

      return HostStatus::Global::ERROR if ERROR_STATUSES.include?(status)
      return HostStatus::Global::WARN if WARN_STATUSES.include?(status)

      HostStatus::Global::OK
    end