Class: Gitabu::Api::V3::Gists
- Inherits:
-
Object
- Object
- Gitabu::Api::V3::Gists
- Defined in:
- lib/gitabu/api/v3/gists.rb
Overview
Gists endpoints.
Class Method Summary collapse
- .check_if_a_gist_is_starred(gist_id: nil, options: nil) ⇒ Object
- .create_a_gist(description: nil, files: nil, public: nil, options: nil) ⇒ Object
- .create_a_gist_comment(gist_id: nil, body: nil, options: nil) ⇒ Object
- .delete_a_gist(gist_id: nil, options: nil) ⇒ Object
- .delete_a_gist_comment(gist_id: nil, comment_id: nil, options: nil) ⇒ Object
- .fork_a_gist(gist_id: nil, options: nil) ⇒ Object
- .get_a_gist(gist_id: nil, options: nil) ⇒ Object
- .get_a_gist_comment(gist_id: nil, comment_id: nil, options: nil) ⇒ Object
- .get_a_gist_revision(gist_id: nil, sha: nil, options: nil) ⇒ Object
- .list_gist_comments(gist_id: nil, options: nil) ⇒ Object
- .list_gist_commits(gist_id: nil, options: nil) ⇒ Object
- .list_gist_forks(gist_id: nil, options: nil) ⇒ Object
- .list_gists_for_a_user(username: nil, options: nil) ⇒ Object
- .list_gists_for_the_authenticated_user(options: nil) ⇒ Object
- .list_public_gists(options: nil) ⇒ Object
- .list_starred_gists(options: nil) ⇒ Object
- .star_a_gist(gist_id: nil, options: nil) ⇒ Object
- .unstar_a_gist(gist_id: nil, options: nil) ⇒ Object
- .update_a_gist(gist_id: nil, description: nil, files: nil, options: nil) ⇒ Object
- .update_a_gist_comment(gist_id: nil, comment_id: nil, body: nil, options: nil) ⇒ Object
Class Method Details
.check_if_a_gist_is_starred(gist_id: nil, options: nil) ⇒ Object
78 79 80 |
# File 'lib/gitabu/api/v3/gists.rb', line 78 def self.check_if_a_gist_is_starred(gist_id: nil, options: nil) new.check_if_a_gist_is_starred(gist_id, ) end |
.create_a_gist(description: nil, files: nil, public: nil, options: nil) ⇒ Object
42 43 44 |
# File 'lib/gitabu/api/v3/gists.rb', line 42 def self.create_a_gist(description: nil, files: nil, public: nil, options: nil) new.create_a_gist(description, files, public, ) end |
.create_a_gist_comment(gist_id: nil, body: nil, options: nil) ⇒ Object
102 103 104 |
# File 'lib/gitabu/api/v3/gists.rb', line 102 def self.create_a_gist_comment(gist_id: nil, body: nil, options: nil) new.create_a_gist_comment(gist_id, body, ) end |
.delete_a_gist(gist_id: nil, options: nil) ⇒ Object
62 63 64 |
# File 'lib/gitabu/api/v3/gists.rb', line 62 def self.delete_a_gist(gist_id: nil, options: nil) new.delete_a_gist(gist_id, ) end |
.delete_a_gist_comment(gist_id: nil, comment_id: nil, options: nil) ⇒ Object
114 115 116 |
# File 'lib/gitabu/api/v3/gists.rb', line 114 def self.delete_a_gist_comment(gist_id: nil, comment_id: nil, options: nil) new.delete_a_gist_comment(gist_id, comment_id, ) end |
.fork_a_gist(gist_id: nil, options: nil) ⇒ Object
74 75 76 |
# File 'lib/gitabu/api/v3/gists.rb', line 74 def self.fork_a_gist(gist_id: nil, options: nil) new.fork_a_gist(gist_id, ) end |
.get_a_gist(gist_id: nil, options: nil) ⇒ Object
54 55 56 |
# File 'lib/gitabu/api/v3/gists.rb', line 54 def self.get_a_gist(gist_id: nil, options: nil) new.get_a_gist(gist_id, ) end |
.get_a_gist_comment(gist_id: nil, comment_id: nil, options: nil) ⇒ Object
106 107 108 |
# File 'lib/gitabu/api/v3/gists.rb', line 106 def self.get_a_gist_comment(gist_id: nil, comment_id: nil, options: nil) new.get_a_gist_comment(gist_id, comment_id, ) end |
.get_a_gist_revision(gist_id: nil, sha: nil, options: nil) ⇒ Object
90 91 92 |
# File 'lib/gitabu/api/v3/gists.rb', line 90 def self.get_a_gist_revision(gist_id: nil, sha: nil, options: nil) new.get_a_gist_revision(gist_id, sha, ) end |
.list_gist_comments(gist_id: nil, options: nil) ⇒ Object
98 99 100 |
# File 'lib/gitabu/api/v3/gists.rb', line 98 def self.list_gist_comments(gist_id: nil, options: nil) new.list_gist_comments(gist_id, ) end |
.list_gist_commits(gist_id: nil, options: nil) ⇒ Object
66 67 68 |
# File 'lib/gitabu/api/v3/gists.rb', line 66 def self.list_gist_commits(gist_id: nil, options: nil) new.list_gist_commits(gist_id, ) end |
.list_gist_forks(gist_id: nil, options: nil) ⇒ Object
70 71 72 |
# File 'lib/gitabu/api/v3/gists.rb', line 70 def self.list_gist_forks(gist_id: nil, options: nil) new.list_gist_forks(gist_id, ) end |
.list_gists_for_a_user(username: nil, options: nil) ⇒ Object
94 95 96 |
# File 'lib/gitabu/api/v3/gists.rb', line 94 def self.list_gists_for_a_user(username: nil, options: nil) new.list_gists_for_a_user(username, ) end |
.list_gists_for_the_authenticated_user(options: nil) ⇒ Object
38 39 40 |
# File 'lib/gitabu/api/v3/gists.rb', line 38 def self.list_gists_for_the_authenticated_user(options: nil) new.list_gists_for_the_authenticated_user() end |
.list_public_gists(options: nil) ⇒ Object
46 47 48 |
# File 'lib/gitabu/api/v3/gists.rb', line 46 def self.list_public_gists(options: nil) new.list_public_gists() end |
.list_starred_gists(options: nil) ⇒ Object
50 51 52 |
# File 'lib/gitabu/api/v3/gists.rb', line 50 def self.list_starred_gists(options: nil) new.list_starred_gists() end |
.star_a_gist(gist_id: nil, options: nil) ⇒ Object
82 83 84 |
# File 'lib/gitabu/api/v3/gists.rb', line 82 def self.star_a_gist(gist_id: nil, options: nil) new.star_a_gist(gist_id, ) end |
.unstar_a_gist(gist_id: nil, options: nil) ⇒ Object
86 87 88 |
# File 'lib/gitabu/api/v3/gists.rb', line 86 def self.unstar_a_gist(gist_id: nil, options: nil) new.unstar_a_gist(gist_id, ) end |
.update_a_gist(gist_id: nil, description: nil, files: nil, options: nil) ⇒ Object
58 59 60 |
# File 'lib/gitabu/api/v3/gists.rb', line 58 def self.update_a_gist(gist_id: nil, description: nil, files: nil, options: nil) new.update_a_gist(gist_id, description, files, ) end |
.update_a_gist_comment(gist_id: nil, comment_id: nil, body: nil, options: nil) ⇒ Object
110 111 112 |
# File 'lib/gitabu/api/v3/gists.rb', line 110 def self.update_a_gist_comment(gist_id: nil, comment_id: nil, body: nil, options: nil) new.update_a_gist_comment(gist_id, comment_id, body, ) end |