Class: Podio::Importer
Overview
Instance Attribute Summary
#attributes
Class Method Summary
collapse
#==, #[], #[]=, #api_friendly_ref_type, #as_json, collection, delegate_to_hash, has_many, has_one, #hash, #initialize, #initialize_attributes, klass_from_string, list, member, #new_record?, output_attribute_as_json, #parent_model, #persisted?, property, #to_param
Class Method Details
.get_columns(file_id) ⇒ Object
14
15
16
|
# File 'lib/podio/models/importer.rb', line 14
def get_columns(file_id)
list Podio.connection.get("/importer/#{file_id}/column/").body
end
|
.get_info(file_id) ⇒ Object
19
20
21
|
# File 'lib/podio/models/importer.rb', line 19
def get_info(file_id)
Podio.connection.get("/importer/#{file_id}/info").body
end
|
.preview(file_id, row, options) ⇒ Object
24
25
26
27
28
29
30
31
|
# File 'lib/podio/models/importer.rb', line 24
def preview(file_id, row, options)
response = Podio.connection.post do |req|
req.url "/importer/#{file_id}/preview/#{row}"
req.body = options
end
response.body
end
|
.process_file(file_id, options = {}) ⇒ Object
5
6
7
8
9
10
11
12
|
# File 'lib/podio/models/importer.rb', line 5
def process_file(file_id, options = {})
response = Podio.connection.post do |req|
req.url "/importer/#{file_id}/process"
req.body = options
end
response.body
end
|