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