Class: Vapi::File

Inherits:
Base
  • Object
show all
Defined in:
lib/vapi/file.rb

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/file.rb', line 13

def create(params)
  client.post("/file", params)
end

#delete(id) ⇒ Object



21
22
23
# File 'lib/vapi/file.rb', line 21

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

#find(id) ⇒ Object



9
10
11
# File 'lib/vapi/file.rb', line 9

def find(id)
  client.get("/file/#{id}")
end

#list(**params) ⇒ Object



5
6
7
# File 'lib/vapi/file.rb', line 5

def list(**params)
  client.get("/file", params)
end

#update(id, params) ⇒ Object



17
18
19
# File 'lib/vapi/file.rb', line 17

def update(id, params)
  client.patch("/file/#{id}", params)
end