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: name_synchronizer.rb
    path of file: ./repos/foreman/app/services
    
    the code of the file until where you have to start completion: class NameSynchronizer
  def initialize(object)
    if ob
    
  def initialize(object)
    if object.is_a?(Host::Base)
      @host = object
      @interface = @host.primary_interface
    elsif object.is_a?(Nic::Base)
      @interface = object
      @host = @interface.host
    else
      raise ArgumentError, 'unsupported object, not kind of Host::Base or Nic::Base'
    end