Class: Vapi::Tool
Instance Attribute Summary
Attributes inherited from Base
#client
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Constructor Details
This class inherits a constructor from Vapi::Base
Instance Method Details
#create(params) ⇒ Object
13
14
15
|
# File 'lib/vapi/tool.rb', line 13
def create(params)
client.post("/tool", params)
end
|
#delete(id) ⇒ Object
21
22
23
|
# File 'lib/vapi/tool.rb', line 21
def delete(id)
client.delete("/tool/#{id}")
end
|
#find(id) ⇒ Object
9
10
11
|
# File 'lib/vapi/tool.rb', line 9
def find(id)
client.get("/tool/#{id}")
end
|
#list(**params) ⇒ Object
5
6
7
|
# File 'lib/vapi/tool.rb', line 5
def list(**params)
client.get("/tool", params)
end
|
#update(id, params) ⇒ Object
17
18
19
|
# File 'lib/vapi/tool.rb', line 17
def update(id, params)
client.patch("/tool/#{id}", params)
end
|