Module: BWAPI::Client::Projects::Data::Mentions::Notes
- Included in:
- BWAPI::Client::Projects::Data::Mentions
- Defined in:
- lib/bwapi/client/projects/data/mentions/notes.rb
Overview
Notes module for data/mentions/#resource_id/notes endpoints
Instance Method Summary collapse
-
#create_mention_note(project_id, resource_id, opts = {}) ⇒ Hash
Post a new note for a mention.
-
#mention_note(project_id, resource_id, note_id) ⇒ Hash
Get a note for a mention.
-
#patch_mention_note(project_id, resource_id, note_id, opts = {}) ⇒ Hash
Patch an existing note for a mention.
-
#update_mention_note(project_id, resource_id, note_id, opts = {}) ⇒ Hash
Put an existing note for a mention.
Instance Method Details
#create_mention_note(project_id, resource_id, opts = {}) ⇒ Hash
Post a new note for a mention
17 18 19 |
# File 'lib/bwapi/client/projects/data/mentions/notes.rb', line 17 def create_mention_note(project_id, resource_id, opts = {}) post "projects/#{project_id}/data/mentions/#{resource_id}/notes", opts end |
#mention_note(project_id, resource_id, note_id) ⇒ Hash
Get a note for a mention
27 28 29 |
# File 'lib/bwapi/client/projects/data/mentions/notes.rb', line 27 def mention_note(project_id, resource_id, note_id) get "projects/#{project_id}/data/mentions/#{resource_id}/notes/#{note_id}" end |
#patch_mention_note(project_id, resource_id, note_id, opts = {}) ⇒ Hash
Patch an existing note for a mention
53 54 55 |
# File 'lib/bwapi/client/projects/data/mentions/notes.rb', line 53 def patch_mention_note(project_id, resource_id, note_id, opts = {}) patch "projects/#{project_id}/data/mentions/#{resource_id}/notes/#{note_id}", opts end |
#update_mention_note(project_id, resource_id, note_id, opts = {}) ⇒ Hash
Put an existing note for a mention
41 42 43 |
# File 'lib/bwapi/client/projects/data/mentions/notes.rb', line 41 def update_mention_note(project_id, resource_id, note_id, opts = {}) put "projects/#{project_id}/data/mentions/#{resource_id}/notes/#{note_id}", opts end |