Module: Gitea::Api::Notification
- Included in:
- Client
- Defined in:
- lib/gitea/api/notification.rb
Instance Method Summary collapse
- #get_notifications(opt = {}) ⇒ Object
- #get_notifications_new(opt = {}) ⇒ Object
- #get_notifications_threads_by_id(opt = {}) ⇒ Object
- #get_repos_notifications_by_owner_repo(owner, repo, opt = {}) ⇒ Object
- #patch_notifications_threads_by_id(opt = {}) ⇒ Object
- #put_notifications(opt = {}) ⇒ Object
- #put_repos_notifications_by_owner_repo(owner, repo, opt = {}) ⇒ Object
Instance Method Details
#get_notifications(opt = {}) ⇒ Object
4 5 6 |
# File 'lib/gitea/api/notification.rb', line 4 def get_notifications(opt={}) @http.get("/notifications", opt) end |
#get_notifications_new(opt = {}) ⇒ Object
12 13 14 |
# File 'lib/gitea/api/notification.rb', line 12 def get_notifications_new(opt={}) @http.get("/notifications/new", opt) end |
#get_notifications_threads_by_id(opt = {}) ⇒ Object
16 17 18 |
# File 'lib/gitea/api/notification.rb', line 16 def get_notifications_threads_by_id(opt={}) @http.get("/notifications/threads/#{id}", opt) end |
#get_repos_notifications_by_owner_repo(owner, repo, opt = {}) ⇒ Object
24 25 26 |
# File 'lib/gitea/api/notification.rb', line 24 def get_repos_notifications_by_owner_repo(owner, repo, opt={}) @http.get("/repos/#{owner}/#{repo}/notifications", opt) end |
#patch_notifications_threads_by_id(opt = {}) ⇒ Object
20 21 22 |
# File 'lib/gitea/api/notification.rb', line 20 def patch_notifications_threads_by_id(opt={}) @http.patch("/notifications/threads/#{id}", opt) end |
#put_notifications(opt = {}) ⇒ Object
8 9 10 |
# File 'lib/gitea/api/notification.rb', line 8 def put_notifications(opt={}) @http.put("/notifications", opt) end |
#put_repos_notifications_by_owner_repo(owner, repo, opt = {}) ⇒ Object
28 29 30 |
# File 'lib/gitea/api/notification.rb', line 28 def put_repos_notifications_by_owner_repo(owner, repo, opt={}) @http.put("/repos/#{owner}/#{repo}/notifications", opt) end |