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: availability_creator.rb
    path of file: ./repos/ReadyResponder/app/services
    
    the code of the file until where you have to start completion: class AvailabilityCreator
  attr_accessor :availability

  def initialize(**availability_opts)
    @availability = Availability.new(availability_opts)
  end

  def call
    @availability.transaction do
      process_containing  if containing_availabilities.any?
      process_contained   if c
    
  def process_overlapping
    partially_overlapping_availabilities.each do |a|
      if a.status == status
        @availability.start_time = [a.start_time, @availability.start_time].min
        @availability.end_time   = [a.end_time, @availability.end_time].max
        a.cancel!
      else
        if a.start_time > start_time
          a.update(start_time: end_time)
        else
          a.update(end_time: start_time)
        end
      end