Class: Pike13::API::V2::Desk::Note
- Defined in:
- lib/pike13/api/v2/desk/note.rb
Class Method Summary collapse
-
.all(person_id:) ⇒ Object
GET /desk/people/:person_id/notes.
-
.create(person_id:, attributes:) ⇒ Object
POST /desk/people/:person_id/notes.
-
.destroy(person_id:, id:) ⇒ Object
DELETE /desk/people/:person_id/notes/:id.
-
.find(person_id:, id:) ⇒ Object
GET /desk/people/:person_id/notes/:id.
-
.update(person_id:, id:, attributes:) ⇒ Object
PUT /desk/people/:person_id/notes/:id.
Methods inherited from Base
Class Method Details
.all(person_id:) ⇒ Object
GET /desk/people/:person_id/notes
10 11 12 |
# File 'lib/pike13/api/v2/desk/note.rb', line 10 def all(person_id:) client.get("desk/people/#{person_id}/notes") end |
.create(person_id:, attributes:) ⇒ Object
POST /desk/people/:person_id/notes
20 21 22 |
# File 'lib/pike13/api/v2/desk/note.rb', line 20 def create(person_id:, attributes:) client.post("desk/people/#{person_id}/notes", { note: attributes }) end |
.destroy(person_id:, id:) ⇒ Object
DELETE /desk/people/:person_id/notes/:id
30 31 32 |
# File 'lib/pike13/api/v2/desk/note.rb', line 30 def destroy(person_id:, id:) client.delete("desk/people/#{person_id}/notes/#{id}") end |
.find(person_id:, id:) ⇒ Object
GET /desk/people/:person_id/notes/:id
15 16 17 |
# File 'lib/pike13/api/v2/desk/note.rb', line 15 def find(person_id:, id:) client.get("desk/people/#{person_id}/notes/#{id}") end |
.update(person_id:, id:, attributes:) ⇒ Object
PUT /desk/people/:person_id/notes/:id
25 26 27 |
# File 'lib/pike13/api/v2/desk/note.rb', line 25 def update(person_id:, id:, attributes:) client.put("desk/people/#{person_id}/notes/#{id}", { note: attributes }) end |