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: client.rb
    path of file: ./repos/tesla-api/lib/tesla_api
    
    the code of the file until where you have to start completion: module TeslaApi
  class Client
    attr_reader :api, :email, :a
    
    def initialize(
      email: nil,
      access_token: nil,
      access_token_expires_at: nil,
      refresh_token: nil,
      client_id: ENV["TESLA_CLIENT_ID"],
      client_secret: ENV["TESLA_CLIENT_SECRET"],
      retry_options: nil,
      base_uri: nil,
      sso_uri: nil,
      logger_bodies: false,
      logger_headers: false,
      client_options: {headers: {"Accept" => "application/json"}}
    )
      @email = email
      @base_uri = base_uri || BASE_URI
      @sso_uri = sso_uri || SSO_URI

      @client_id = client_id
      @client_secret = client_secret

      @access_token = access_token
      @access_token_expires_at = access_token_expires_at
      @refresh_token = refresh_token

      @api = Faraday.new(
        @base_uri + "/api/1",
        client_options
      ) { |conn|
        conn.request :json
        conn.response :json
        conn.response :raise_error
        conn.request :retry, retry_options if retry_options # Must be registered after :raise_error
        conn.response :logger, ::Logger.new($stdout), bodies: logger_bodies, headers: logger_headers if logger_bodies || logger_headers
        conn.adapter Faraday.default_adapter
      }
    end