arcgis_vrps 0.0.4.14 → 0.0.4.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b604c130afef28f8aa032ae681cec3216ea53d8
4
- data.tar.gz: 47b44b89cd5b64792c317a5f1c4045cd01d58d9c
3
+ metadata.gz: 571d3cb396308779fb22a9f14ea3474c284c5a68
4
+ data.tar.gz: 326afebb6159145f0d6295dda8ca4b13d3d3ac22
5
5
  SHA512:
6
- metadata.gz: a06c99fda5d2f4a922415299e08d59da9b32eb67693a5a114ebb430b5922a0d9af0dea574b8fb5d22f9d1f3522895616ead7e64e0ad508244da9d33e2c4d9c78
7
- data.tar.gz: 577e4801713ee4a3ef5ca8892adfe94f31d5cc0d282fa327ecbe5a1cbc3e292550a9d48d240f7ebf7c978d3e4281cbd238d82972c9755fb6d6f0c339ad4b03dc
6
+ metadata.gz: fecbcb5311bab8d7b9336f1e618999bd28e2b6bfea24f7ec1f97de6e9729d21419972602f8c11bc754c6c4affcf9db2a3a926d7cfaeeb25e8919085b99b4718e
7
+ data.tar.gz: 9625f609a183a64ad9c0bad29ef2296deb73fb9cce7c4727ab9e4c98e15deca7c3dddf16ba8a35dd116ee8b075aa753d5d0f9e91705e6b80bec08f4d42d75fc9
data/lib/arcgis_vrps.rb CHANGED
@@ -73,18 +73,18 @@ class Arcgis_Vrps
73
73
 
74
74
  res = http.request(req)
75
75
 
76
- print " ======================================================== "
77
- print "req"
78
- print ordersObj.to_json
79
- print " ----- "
80
- print depotsObj.to_json
81
- print " ----- "
82
- print routesObj.to_json
83
- print " ----- "
84
- print Time.now.to_i
85
- print " ----- "
86
- print @token
87
- print " ======================================================== "
76
+ # print " ======================================================== "
77
+ # print "req"
78
+ # print ordersObj.to_json
79
+ # print " ----- "
80
+ # print depotsObj.to_json
81
+ # print " ----- "
82
+ # print routesObj.to_json
83
+ # print " ----- "
84
+ # print Time.now.to_i
85
+ # print " ----- "
86
+ # print @token
87
+ # print " ======================================================== "
88
88
 
89
89
 
90
90
  @jobId = JSON.parse(res.body)['jobId']
@@ -233,10 +233,10 @@ class Arcgis_Vrps
233
233
  ordersFeatures = JSON.parse(res.body)
234
234
  # ordersFeatures = JSON.parse(res.body)["value"]["features"]
235
235
 
236
- puts " ================================================== "
237
- puts "ordersFeatures"
238
- puts ordersFeatures
239
- puts " ================================================== "
236
+ # puts " ================================================== "
237
+ # puts "ordersFeatures"
238
+ # puts ordersFeatures
239
+ # puts " ================================================== "
240
240
 
241
241
  if ordersFeatures.nil?
242
242
  ordersFeatures = res.body
@@ -30,25 +30,30 @@ class Orders
30
30
 
31
31
  # Get orders attribute object from the param passed in
32
32
  # timeWindow* refers to the time that the service
33
- # serviceTime specify how much time can be spent there
34
- def getOrderAttributeObj (orderName, serviceTime, timeWindowStart1, timeWindowEnd1, maxViolationTime1)
35
- if maxViolationTime1.nil?
36
- orderAttributeObj = {
37
- :Name => orderName,
38
- :ServiceTime => serviceTime,
39
- :TimeWindowStart1 => timeWindowStart1,
40
- :TimeWindowEnd1 => timeWindowEnd1
41
- }
42
- else
43
- orderAttributeObj = {
44
- :Name => orderName,
45
- :ServiceTime => serviceTime,
46
- :TimeWindowStart1 => timeWindowStart1,
47
- :TimeWindowEnd1 => timeWindowEnd1,
48
- :MaxViolationTime1 => maxViolationTime1
49
- }
50
- end
33
+ # serviceTime specify how much time to be spent there. value is as per time_units
34
+ # def getOrderAttributeObj (orderName, serviceTime, timeWindowStart1, timeWindowEnd1, maxViolationTime1)
35
+ def getOrderAttributeObj (orderName, serviceTime)
36
+ # if maxViolationTime1.nil?
37
+ # orderAttributeObj = {
38
+ # :Name => orderName,
39
+ # :ServiceTime => serviceTime,
40
+ # :TimeWindowStart1 => timeWindowStart1,
41
+ # :TimeWindowEnd1 => timeWindowEnd1
42
+ # }
43
+ # else
44
+ # orderAttributeObj = {
45
+ # :Name => orderName,
46
+ # :ServiceTime => serviceTime,
47
+ # :TimeWindowStart1 => timeWindowStart1,
48
+ # :TimeWindowEnd1 => timeWindowEnd1,
49
+ # :MaxViolationTime1 => maxViolationTime1
50
+ # }
51
+ # end
51
52
 
53
+ orderAttributeObj = {
54
+ :Name => orderName,
55
+ :ServiceTime => serviceTime
56
+ }
52
57
 
53
58
  return orderAttributeObj
54
59
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arcgis_vrps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4.14
4
+ version: 0.0.4.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kiong