Module: Pivit::Client::Note
- Included in:
- Pivit::Client
- Defined in:
- lib/pivit/client/note.rb
Overview
Note management
Instance Method Summary collapse
-
#create_note(project_id, story_id, text, options = {}) ⇒ Hashie::Mash
Create a note.
-
#notes(project_id, story_id, options = {}) ⇒ Hashie::Mash
Retrieve all notes for a story.
Instance Method Details
#create_note(project_id, story_id, text, options = {}) ⇒ Hashie::Mash
Create a note
Provide the parameters you want to use for the note via the options hash
41 42 43 44 |
# File 'lib/pivit/client/note.rb', line 41 def create_note(project_id, story_id, text, = {}) = { :note => .merge!(:text => text) } post("projects/#{project_id}/stories", ).note end |
#notes(project_id, story_id, options = {}) ⇒ Hashie::Mash
Retrieve all notes for a story
20 21 22 |
# File 'lib/pivit/client/note.rb', line 20 def notes(project_id, story_id, = {}) get("projects/#{project_id}/stories/#{story_id}/notes", ).notes end |