lib/Github/Api/RateLimit.php
public function getResource($name)
    {
        // Fetch once per instance
        if (empty($this->resources)) {
            $this->fetchLimits();
        }

        if (!isset($this->resources[$name])) {
            return false;
        }

        return $this->resources[$name];
    }
public function getResource($name)
    {
        // Fetch once per instance
        if (empty($this->resources)) {
            $this->fetchLimits();
        }

        if (!isset($this->resources[$name])) {
            return false;
        }

        return $this->resources[$name];
    }
public function getResource ( $ name ) { // Fetch once per instance if ( empty ( $ this -> resources ) ) { $ this -> fetchLimits ( ) ; } if ( ! isset ( $ this -> resources [ $ name ] ) ) { return false ; } return $ this -> resources [ $ name ] ; }
Returns a rate limit resource object by the given name.

@param string $name

@return RateLimitResource|false
Returns a rate limit resource object by the given name .