Class: DoorLoop::Notes

Inherits:
Object
  • Object
show all
Defined in:
lib/doorloop/notes.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Notes

Returns a new instance of Notes.



5
6
7
# File 'lib/doorloop/notes.rb', line 5

def initialize(client)
  @client = client
end

Instance Method Details

#create(params) ⇒ Object



13
14
15
# File 'lib/doorloop/notes.rb', line 13

def create(params)
  @client.post('notes', params)
end

#delete(id) ⇒ Object



25
26
27
# File 'lib/doorloop/notes.rb', line 25

def delete(id)
  @client.delete("notes/#{id}")
end

#find(task_id) ⇒ Object



17
18
19
# File 'lib/doorloop/notes.rb', line 17

def find(task_id)
  @client.get("notes/#{id}")
end

#list(options = {}) ⇒ Object



9
10
11
# File 'lib/doorloop/notes.rb', line 9

def list(options = {})
  @client.get('notes', options)
end

#update(id, params) ⇒ Object



21
22
23
# File 'lib/doorloop/notes.rb', line 21

def update(id, params)
  @client.put("notes/#{id}", params)
end