Class: Datasources
Overview
Instance Attribute Summary
Attributes inherited from Resource
#options
Instance Method Summary
collapse
Methods inherited from Resource
#base_delete, #base_get, #base_post, #base_put, #base_request, #initialize
Constructor Details
This class inherits a constructor from Resource
Instance Method Details
#create(body) ⇒ Object
31
32
33
|
# File 'lib/onvo/datasources.rb', line 31
def create(body)
base_put('/datasources', body)
end
|
#delete(id) ⇒ Object
23
24
25
|
# File 'lib/onvo/datasources.rb', line 23
def delete(id)
base_delete("/datasources/#{id}")
end
|
#fetch_column_descriptions(id) ⇒ Object
19
20
21
|
# File 'lib/onvo/datasources.rb', line 19
def fetch_column_descriptions(id)
base_post("/datasources/#{id}/populate-columns")
end
|
#get(id) ⇒ Object
11
12
13
|
# File 'lib/onvo/datasources.rb', line 11
def get(id)
base_get("/datasources/#{id}")
end
|
#get_data(id) ⇒ Object
15
16
17
|
# File 'lib/onvo/datasources.rb', line 15
def get_data(id)
base_get("/datasources/#{id}/data")
end
|
#list ⇒ Object
7
8
9
|
# File 'lib/onvo/datasources.rb', line 7
def list
base_get('/datasources')
end
|
#update(id, body) ⇒ Object
27
28
29
|
# File 'lib/onvo/datasources.rb', line 27
def update(id, body)
base_post("/datasources/#{id}", body)
end
|