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: api_command.rb
    path of file: ./repos/travis.rb/lib/travis/cli
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'travis/cli'
require 'travis/tools/github'

module Travis
  module CLI
    class ApiCommand < Comm
    
      def setup
        setup_enterprise
        self.api_endpoint = default_endpoint if default_endpoint and not explicit_api_endpoint?
        self.access_token               ||= fetch_token
        endpoint_config['access_token'] ||= access_token
        endpoint_config['insecure']       = insecure unless insecure.nil?
        self.insecure                     = endpoint_config['insecure']
        session.ssl                       = { verify: false } if insecure?
        authenticate if pro? || enterprise?
      end