Conditions | 1 |
Total Lines | 9 |
Lines | 9 |
Ratio | 100 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | module Route4me |
||
30 | View Code Duplication | def self.update(params={}) |
|
31 | json = Util.extract(params, [:addresses, :parameters]) |
||
32 | get = Util.extract(params, [ |
||
33 | :optimization_problem_id, :directions, :format, |
||
34 | :route_path_output, :reoptimize |
||
35 | ]) |
||
36 | |||
37 | Route4me.request(:post, self.url, get: get, json: json) |
||
38 | end |
||
39 | end |
||
41 |