Class: Cuenote::Api::Import
- Inherits:
-
Base
- Object
- Base
- Cuenote::Api::Import
show all
- Defined in:
- lib/cuenote/api/import.rb
Instance Method Summary
collapse
Methods inherited from Base
connection, #connection, run, #run
Constructor Details
#initialize(params = {}) ⇒ Import
Returns a new instance of Import.
5
6
7
|
# File 'lib/cuenote/api/import.rb', line 5
def initialize(params={})
@params = params
end
|
Instance Method Details
#get(params = {}) ⇒ Object
14
15
16
|
# File 'lib/cuenote/api/import.rb', line 14
def get params={}
@impid
end
|
#set(params = {}) ⇒ Object
9
10
11
12
|
# File 'lib/cuenote/api/import.rb', line 9
def set params={}
res = run 'setImportEntry', @params.merge(params)
@impid = res.attributes[:impid]
end
|
#start(params = {}) ⇒ Object
22
23
24
|
# File 'lib/cuenote/api/import.rb', line 22
def start params={}
run 'startImportEntry', params.merge(impid: @impid)
end
|
#test(params = {}) ⇒ Object
18
19
20
|
# File 'lib/cuenote/api/import.rb', line 18
def test params={}
@impid
end
|