Conditions | 1 |
Total Lines | 8 |
Lines | 8 |
Ratio | 100 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | module Route4me |
||
21 | View Code Duplication | def self.optimize(params={}) |
|
|
|||
22 | json = Util.extract(params, [:addresses, :parameters]) |
||
23 | get = Util.extract(params, [ |
||
24 | :directions, :format, :route_path_output, :optimized_callback_url |
||
25 | ]) |
||
26 | |||
27 | Route4me.request(:post, self.url, get: get, json: json) |
||
28 | end |
||
29 | |||
41 |