Example #1
0
 /**
  * @param string $name
  *
  * @return EcrGithubDownloads|JGithubObject
  */
 public function __get($name)
 {
     if ($name == 'downloads') {
         if ($this->downloads == null) {
             $this->downloads = new EcrGithubDownloads($this->options, $this->client);
         }
         return $this->downloads;
     }
     return parent::__get($name);
 }
Example #2
0
 public function deleteComment($comment_id)
 {
     return $this->connector->sendRequest('/gists/comments/' . (int) $comment_id, 'delete')->body;
 }