Class: PostmanMta::Note

Inherits:
ApplicationModel show all
Defined in:
app/models/postman_mta/note.rb

Instance Method Summary collapse

Instance Method Details

#create(params) ⇒ Object



3
4
5
# File 'app/models/postman_mta/note.rb', line 3

def create(params)
  post('/notes', body: params)
end

#update(note_id, params) ⇒ Object



7
8
9
# File 'app/models/postman_mta/note.rb', line 7

def update(note_id, params)
  patch("/notes/#{note_id}", body: params)
end