Class: Basecamp::Services::MyNotesService
- Inherits:
-
BaseService
- Object
- BaseService
- Basecamp::Services::MyNotesService
- Defined in:
- lib/basecamp/generated/services/my_notes_service.rb
Overview
Service for MyNotes operations
Instance Method Summary collapse
-
#get_my_note ⇒ Hash
Get the authenticated user's note — a per-person notebook singleton at.
-
#update_my_note(note:) ⇒ Hash
Replace the note's content, recording a new revision server-side.
Constructor Details
This class inherits a constructor from Basecamp::Services::BaseService
Instance Method Details
#get_my_note ⇒ Hash
Get the authenticated user's note — a per-person notebook singleton at
12 13 14 15 16 |
# File 'lib/basecamp/generated/services/my_notes_service.rb', line 12 def get_my_note() with_operation(service: "mynotes", operation: "get_my_note", is_mutation: false) do http_get("/my/notes.json", operation: "GetMyNote").json end end |
#update_my_note(note:) ⇒ Hash
Replace the note's content, recording a new revision server-side. The first
21 22 23 24 25 |
# File 'lib/basecamp/generated/services/my_notes_service.rb', line 21 def update_my_note(note:) with_operation(service: "mynotes", operation: "update_my_note", is_mutation: true) do http_put("/my/notes.json", body: compact_params(note: note)).json end end |