Class: Basecamp::Services::MyNotesService

Inherits:
BaseService
  • Object
show all
Defined in:
lib/basecamp/generated/services/my_notes_service.rb

Overview

Service for MyNotes operations

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from Basecamp::Services::BaseService

Instance Method Details

#get_my_noteHash

Get the authenticated user's note — a per-person notebook singleton at

Returns:

  • (Hash)

    response data



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

Parameters:

  • note (Hash)

    note

Returns:

  • (Hash)

    response data



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