original_string: public function api($name)
      {
          $this->initializeClient($this->url, $this->client);
  
          $class = 'Rs\\VersionEye\\Api\\' . ucfirst($name);
  
          if (class_exists($class)) {
              return new $class($this->client);
          } else {
              throw new \InvalidArgumentException('unknown api "' . $name . '" requested');
          }
      }
code: public function api($name)
      {
          $this->initializeClient($this->url, $this->client);
  
          $class = 'Rs\\VersionEye\\Api\\' . ucfirst($name);
  
          if (class_exists($class)) {
              return new $class($this->client);
          } else {
              throw new \InvalidArgumentException('unknown api "' . $name . '" requested');
          }
      }
code_tokens: public function api ( $ name ) { $ this -> initializeClient ( $ this -> url , $ this -> client ) ; $ class = 'Rs\\VersionEye\\Api\\' . ucfirst ( $ name ) ; if ( class_exists ( $ class ) ) { return new $ class ( $ this -> client ) ; } else { throw new \ InvalidArgumentException ( 'unknown api "' . $ name . '" requested' ) ; } }
docstring: returns an api.
  
  @param string $name
  
  @throws \InvalidArgumentException
  
  @return Api
docstring_tokens: returns an api .