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: ticket_response_time.rb
    path of file: ./repos/zammad/lib/stats
    
    the code of the file until where you have to start completion: # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/

class Stats::TicketResponseTime

  def self.log(object, o_id)
    return if object != 'Ticket'

    ticket = Ticket.lookup(id: o_id)

    article_created_by_id = 3

    # check if response was sent by owner
    return if ticket.owner_id != 1 && ticket.owner_id != article_created_by_id

    # r
    
  def self.log(object, o_id)
    return if object != 'Ticket'

    ticket = Ticket.lookup(id: o_id)

    article_created_by_id = 3

    # check if response was sent by owner
    return if ticket.owner_id != 1 && ticket.owner_id != article_created_by_id

    # return if customer send at least
    return if ticket.last_contact_customer_at > ticket.last_contact_agent_at

    # TODO: only business hours
    response_time_taken = ticket.last_contact_agent_at - ticket.last_contact_customer_at

    (response_time_taken / 60).round
  end