kount_complete 1.0.9 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae7d7494a691a9ea03efd2d6a043989c33b9c0f515a1367ae2734ab954368594
4
- data.tar.gz: 3e7cad56158473246054a87efeaf546c17ce3107aab07135123777741f9525d5
3
+ metadata.gz: 10600c289b443555890abb28f2ff53e58ce14034fb095f3b23e675152f00ab61
4
+ data.tar.gz: 265c55111a4e6224d23173eaf569a30dcf2ad7c878c88f1d9d38e02c0d4dcebb
5
5
  SHA512:
6
- metadata.gz: 727537cdd538671965d3156f0b1b4b17d5028cc18e2379ec9085894420af013397c7910a019781cdec5a484be9a1cb446be277a2090ed3701aa23bcc03902274
7
- data.tar.gz: c741315e192dd9955ccb9450f6b030c63d9e36e474c3aaefa8f56a0e2ea681262e85630b73be6730996e4400867cc4914b4a99a34931a754b9d6cff820e6a2b2
6
+ metadata.gz: db97cb94c2b116e60bc6de56c2901ca6d073b7aa653a1b0b6358c2cbbed8fe6c66554f602ad69c4328d06015bb7838d792c65370f7161c0a752ff660b82484c3
7
+ data.tar.gz: 3f6f26bd5e8a5c22a7a37ac75df9e99f54622fb7c1746b756530a4de89799074375198c1e9b69efa59546e1b7b9b72f8e3af9002d00d5855f01c60a518c537ec
data/lib/kount.rb CHANGED
@@ -1,28 +1,27 @@
1
- require 'kount/client'
2
- require 'kount/payment_types'
3
-
4
- ##
5
- # This module is the main entry point to the service wrapper.
6
- # Its primary function is to collect the runtime options
7
- # and return a Client object, on which all of the runtime
8
- # integration takes place.
9
- module Kount
10
- # Creates the client object
11
- #
12
- # Expected options include:
13
- # options = {
14
- # :merchant_id => "MERCHANT_ID" # required (6 digit number)
15
- # :ksalt => "KSALT" # required (provided by Kount)
16
- # :key => "RIS_KEY" # required (created in the AWC web app)
17
- # :endpoint => "RIS_ENDPOINT" # optional (default https://risk.kount.net)
18
- # :version => "RIS_VERSION" # optional (defaults "0630")
19
- # :is_test => "IS_TEST" # optional (defaults to false)
20
- # }
21
- # @param options Hash
22
- def new(options = {})
23
- fail ArgumentError, 'Config options required' if options.empty?
24
- Client.new(options)
25
- end
26
-
27
- module_function :new
28
- end
1
+ require 'kount/client'
2
+ require 'kount/payment_types'
3
+
4
+ ##
5
+ # This module is the main entry point to the service wrapper.
6
+ # Its primary function is to collect the runtime options
7
+ # and return a Client object, on which all of the runtime
8
+ # integration takes place.
9
+ module Kount
10
+ # Creates the client object
11
+ #
12
+ # Expected options include:
13
+ # options = {
14
+ # :merchant_id => "MERCHANT_ID" # required (6 digit number)
15
+ # :ksalt => "KSALT" # required (provided by Kount)
16
+ # :key => "RIS_KEY" # required (created in the AWC web app)
17
+ # :endpoint => "RIS_ENDPOINT" # optional (default https://risk.kount.net)
18
+ # :version => "RIS_VERSION" # optional (defaults "0630")
19
+ # :is_test => "IS_TEST" # optional (defaults to false)
20
+ # }
21
+ # @param options Hash
22
+ def new(options = {})
23
+ Client.new(options)
24
+ end
25
+
26
+ module_function :new
27
+ end
@@ -1,457 +1,344 @@
1
- require 'json'
2
- module Response
3
-
4
- class Resp
5
- def initialize(paramlist)
6
- @paramlist = paramlist
7
- puts @paramlist
8
- end
9
-
10
- def getMode
11
- modes = @paramlist["MODE"].to_s()
12
- if !modes.empty?
13
- return modes
14
- end
15
-
16
- end
17
-
18
- def getVersion
19
- vers = @paramlist["VERS"].to_s()
20
- if !vers.empty?
21
- return vers
22
- end
23
- end
24
-
25
- def getTransactionId
26
- tran = @paramlist["TRAN"].to_s()
27
- if !tran.empty?
28
- return tran
29
- end
30
- end
31
-
32
- def getMerchantId
33
- merchantid = @paramlist["MERC"].to_s()
34
- if !merchantid.empty?
35
- return merchantid
36
- end
37
- end
38
-
39
- def getSessionId
40
- sessionid = @paramlist["SESS"].to_s()
41
- if !sessionid.empty?
42
- return sessionid
43
- end
44
- end
45
-
46
- def getOrderNumber
47
- orderno = @paramlist["ORDR"].to_s()
48
- if !orderno.empty?
49
- return orderno
50
- end
51
- end
52
-
53
- def getSite
54
- site = @paramlist["SITE"].to_s()
55
- if !site.empty?
56
- return site
57
- end
58
- end
59
-
60
- def getAuto
61
- auto = @paramlist["AUTO"].to_s()
62
- if !auto.empty?
63
- return auto
64
- end
65
- end
66
-
67
- def getScore
68
- score = @paramlist["SCOR"].to_s()
69
- if !score.empty?
70
- return score
71
- end
72
- end
73
-
74
- def getOmniscore
75
- omniscore = @paramlist['OMNISCORE'].to_s()
76
- if !omniscore.empty?
77
- return omniscore
78
- end
79
- end
80
-
81
- def getGeox
82
- geox = @paramlist["GEOX"].to_s()
83
- if !geox.empty?
84
- return geox
85
- end
86
- end
87
-
88
- def getBrand
89
- brand = @paramlist["BRND"].to_s()
90
- if !brand.empty?
91
- return brand
92
- end
93
- end
94
-
95
- def getVelo
96
- velo = @paramlist["VELO"].to_s()
97
- if !velo.empty?
98
- return velo
99
- end
100
- end
101
-
102
- def getVmax
103
- vmax = @paramlist["VMAX"].to_s()
104
- if !vmax.empty?
105
- return vmax
106
- end
107
- end
108
-
109
- def getNetwork
110
- network = @paramlist["NETW"].to_s()
111
- if !network.empty?
112
- return network
113
- end
114
- end
115
-
116
- def getRegion
117
- region = @paramlist["REGN"].to_s()
118
- if !region.empty?
119
- return region
120
- end
121
- end
122
-
123
- def getKaptcha
124
- kapt = @paramlist["KAPT"].to_s()
125
- if !kapt.empty?
126
- return kapt
127
- end
128
- end
129
-
130
- def getProxy
131
- proxy = @paramlist["PROXY"].to_s()
132
- if !proxy.empty?
133
- return proxy
134
- end
135
- end
136
-
137
- def getEmails
138
- email = @paramlist["EMAILS"].to_s()
139
- if !email.empty?
140
- return email
141
- end
142
- end
143
-
144
- def getHttpCountry
145
- httmcountry = @paramlist["HTTP_COUNTRY"].to_s()
146
- if !httmcountry.empty?
147
- return httmcountry
148
- end
149
- end
150
-
151
- def getTimeZone
152
- timezone = @paramlist["TIMEZONE"].to_s()
153
- if !timezone.empty?
154
- return timezone
155
- end
156
- end
157
-
158
- def getCards
159
- cards = @paramlist["CARDS"].to_s()
160
- if !cards.empty?
161
- return cards
162
- end
163
- end
164
-
165
- def getPcRemote
166
- pcremote = @paramlist["PC_REMOTE"].to_s()
167
- if !pcremote.empty?
168
- return pcremote
169
- end
170
- end
171
-
172
- def getDevices
173
- devices = @paramlist["DEVICES"].to_s()
174
- if !devices.empty?
175
- return devices
176
- end
177
- end
178
-
179
- def getDeviceLayers
180
- device_layers = @paramlist["DEVICE_LAYERS"].to_s()
181
- if !device_layers.empty?
182
- return device_layers
183
- end
184
- end
185
-
186
- def getMobileForwarder
187
- mobile_forwarder = @paramlist["MOBILE_FORWARDER"].to_s()
188
- if !mobile_forwarder.empty?
189
- return mobile_forwarder
190
- end
191
- end
192
-
193
- def getVoiceDevice
194
- voicedevice = @paramlist["VOICE_DEVICE"].to_s()
195
- if !voicedevice.empty?
196
- return voicedevice
197
- end
198
- end
199
-
200
- def getLocalTime
201
- localtime = @paramlist["LOCALTIME"].to_s()
202
- if !localtime.empty?
203
- return localtime
204
- end
205
- end
206
-
207
- def getMobileType
208
- mobiletype = @paramlist["MOBILE_TYPE"].to_s()
209
- if !mobiletype.empty?
210
- return mobiletype
211
- end
212
- end
213
-
214
- def getFingerPrint
215
- fingerprint = @paramlist["FINGERPRINT"].to_s()
216
- if !fingerprint.empty?
217
- return fingerprint
218
- end
219
- end
220
-
221
- def getFlash
222
- flash = @paramlist["FLASH"].to_s()
223
- if !flash.empty?
224
- return flash
225
- end
226
- end
227
-
228
- def getLanguage
229
- language = @paramlist["LANGUAGE"].to_s()
230
- if !language.empty?
231
- return language
232
- end
233
- end
234
-
235
- def getCountry
236
- country = @paramlist["COUNTRY"].to_s()
237
- if !country.empty?
238
- return country
239
- end
240
- end
241
-
242
- def getJavaScript
243
- javascript = @paramlist["JAVASCRIPT"].to_s()
244
- if !javascript.empty?
245
- return javascript
246
- end
247
- end
248
-
249
- def getCookies
250
- cookie = @paramlist["COOKIES"].to_s()
251
- if !cookie.empty?
252
- return cookie
253
- end
254
- end
255
-
256
- def getMobileDevice
257
- mobiledevice = @paramlist["MOBILE_DEVICE"].to_s()
258
- if !mobiledevice.empty?
259
- return mobiledevice
260
- end
261
- end
262
-
263
- def getPiercedIPAddress
264
- pip_address = @paramlist["PIP_IPAD"].to_s()
265
- if !pip_address.empty?
266
- return pip_address
267
- end
268
- end
269
-
270
- def getPiercedIPAddressLatitude
271
- pip_lat = @paramlist["PIP_LAT"].to_s()
272
- if !pip_lat.empty?
273
- return pip_lat
274
- end
275
- end
276
-
277
- def getPiercedIPAddressLongitude
278
- pip_long = @paramlist["PIP_LON"].to_s()
279
- if !pip_long.empty?
280
- return pip_long
281
- end
282
- end
283
-
284
- def getPiercedIPAddressCountry
285
- pip_country = @paramlist["PIP_COUNTRY"].to_s()
286
- if !pip_country.empty?
287
- return pip_country
288
- end
289
- end
290
-
291
- def getPiercedIPAddressRegion
292
- pip_region = @paramlist["PIP_REGION"].to_s()
293
- if !pip_region.empty?
294
- return pip_region
295
- end
296
- end
297
-
298
- def getPiercedIPAddressCity
299
- pip_city = @paramlist["PIP_CITY"].to_s()
300
- if !pip_city.empty?
301
- return pip_city
302
- end
303
- end
304
-
305
- def getPiercedIPAddressOrganization
306
- pip_org = @paramlist["PIP_ORG"].to_s()
307
- if !pip_org.empty?
308
- return pip_org
309
- end
310
- end
311
-
312
- def getIPAddress
313
- ip_ipad = @paramlist["IP_IPAD"].to_s()
314
- if !ip_ipad.empty?
315
- return ip_ipad
316
- end
317
- end
318
-
319
- def getIPAddressLatitude
320
- ip_lat = @paramlist["IP_LAT"].to_s()
321
- if !ip_lat.empty?
322
- return ip_lat
323
- end
324
- end
325
-
326
- def getIPAddressLongitude
327
- ip_long = @paramlist["IP_LON"].to_s()
328
- if !ip_long.empty?
329
- return ip_long
330
- end
331
- end
332
-
333
- def getIPAddressCountry
334
- ip_country = @paramlist["IP_COUNTRY"].to_s()
335
- if !ip_country.empty?
336
- return ip_country
337
- end
338
- end
339
-
340
- def getIPAddressRegion
341
- ip_region = @paramlist["IP_REGION"].to_s()
342
- if !ip_region.empty?
343
- return ip_region
344
- end
345
- end
346
-
347
- def getIPAddressCity
348
- ip_city = @paramlist["IP_CITY"].to_s()
349
- if !ip_city.empty?
350
- return ip_city
351
- end
352
- end
353
-
354
- def getIPAddressOrganization
355
- ip_org = @paramlist["IP_ORG"].to_s()
356
- if !ip_org.empty?
357
- return ip_org
358
- end
359
- end
360
-
361
- def getDateDeviceFirstSeen
362
- ddfs = @paramlist["DDFS"].to_s()
363
- if !ddfs.empty?
364
- return ddfs
365
- end
366
- end
367
-
368
- def getUserAgentString
369
- user_agent = @paramlist["UAS"].to_s()
370
- if !user_agent.empty?
371
- return user_agent
372
- end
373
- end
374
-
375
- def getDeviceScreenResolution
376
- dsr = @paramlist["DSR"].to_s()
377
- if !dsr.empty?
378
- return dsr
379
- end
380
- end
381
-
382
- def getOS
383
- os = @paramlist["OS"].to_s()
384
- if !os.empty?
385
- return os
386
- end
387
- end
388
-
389
- def getBrowser
390
- browser = @paramlist["BROWSER"].to_s()
391
- if !browser.empty?
392
- return browser
393
- end
394
- end
395
-
396
- def getNumberRulesTriggered
397
- no_rules_triggered = @paramlist["RULES_TRIGGERED"].to_s()
398
- return no_rules_triggered
399
- end
400
-
401
- def getRulesTriggered
402
- rules_count = getNumberRulesTriggered()
403
- rules = Array.new
404
- for i in 0..rules_count.to_i()-1
405
- ruleid = @paramlist["RULE_ID_#{i}"]
406
- rules[ruleid.to_i()] = @paramlist["RULE_DESCRIPTION_#{i}"]
407
- end
408
- return rules.compact
409
-
410
- end
411
-
412
- def getWarningCount
413
- warning_count = @paramlist["WARNING_COUNT"].to_s()
414
- return warning_count
415
- end
416
-
417
- def getWarnings
418
- warnings = Array.new
419
- warningcount = getWarningCount()
420
- for i in 0..warningcount.to_i()-1
421
- warnings = @paramlist["WARNING_#{i}"]
422
- end
423
- return warnings.compact
424
- end
425
-
426
- def getErrorCount
427
- errorcount = @paramlist["ERROR_COUNT"].to_s()
428
- return errorcount
429
- end
430
-
431
- def getErrors
432
- errors = Array.new
433
- error_count = getErrorCount()
434
- for i in 0..error_count.to_i()-1
435
- errors = @paramlist["ERROR_#{i}"]
436
- end
437
- return errors.compact
438
- end
439
-
440
- def getNumberCountersTriggered
441
- count_triggered = @paramlist["COUNTERS_TRIGGERED"].to_s()
442
- return count_triggered
443
- end
444
-
445
- def getCountersTriggered
446
- counters = Array.new
447
- numCounters = getCountersTriggered()
448
- for i in 0..counters.to_i()-1
449
- countername = @paramlist["COUNTER_NAME_#{i}"]
450
- counters[countername.to_s()] = @paramlist["COUNTER_VALUE_#{i}"]
451
- end
452
- return counters.compact
453
- end
454
-
455
- end
456
-
457
- end
1
+ require 'json'
2
+
3
+
4
+ module Response
5
+ class Resp
6
+ def initialize(paramlist)
7
+ @paramlist = paramlist
8
+ puts @paramlist
9
+ end
10
+
11
+ def get_mode
12
+ modes = @paramlist['MODE'].to_s
13
+ return modes unless modes.empty?
14
+ end
15
+
16
+ def get_version
17
+ vers = @paramlist['VERS'].to_s
18
+ return vers unless vers.empty?
19
+ end
20
+
21
+ def get_transaction_id
22
+ tran = @paramlist['TRAN'].to_s
23
+ return tran unless tran.empty?
24
+ end
25
+
26
+ def get_merchant_id
27
+ merchantid = @paramlist['MERC'].to_s
28
+ return merchantid unless merchantid.empty?
29
+ end
30
+
31
+ def get_session_id
32
+ sessionid = @paramlist['SESS'].to_s
33
+ return sessionid unless sessionid.empty?
34
+ end
35
+
36
+ def get_order_number
37
+ orderno = @paramlist['ORDR'].to_s
38
+ return orderno unless orderno.empty?
39
+ end
40
+
41
+ def get_site
42
+ site = @paramlist['SITE'].to_s
43
+ return site unless site.empty?
44
+ end
45
+
46
+ def get_auto
47
+ auto = @paramlist['AUTO'].to_s
48
+ return auto unless auto.empty?
49
+ end
50
+
51
+ def get_score
52
+ score = @paramlist['SCOR'].to_s
53
+ return score unless score.empty?
54
+ end
55
+
56
+ def get_omniscore
57
+ omniscore = @paramlist['OMNISCORE'].to_s
58
+ return omniscore unless omniscore.empty?
59
+ end
60
+
61
+ def get_geox
62
+ geox = @paramlist['GEOX'].to_s
63
+ return geox unless geox.empty?
64
+ end
65
+
66
+ def get_brand
67
+ brand = @paramlist['BRND'].to_s
68
+ return brand unless brand.empty?
69
+ end
70
+
71
+ def get_velo
72
+ velo = @paramlist['VELO'].to_s
73
+ return velo unless velo.empty?
74
+ end
75
+
76
+ def get_vmax
77
+ vmax = @paramlist['VMAX'].to_s
78
+ return vmax unless vmax.empty?
79
+ end
80
+
81
+ def get_network
82
+ network = @paramlist['NETW'].to_s
83
+ return network unless network.empty?
84
+ end
85
+
86
+ def get_region
87
+ region = @paramlist['REGN'].to_s
88
+ return region unless region.empty?
89
+ end
90
+
91
+ def get_kaptcha
92
+ kapt = @paramlist['KAPT'].to_s
93
+ return kapt unless kapt.empty?
94
+ end
95
+
96
+ def get_proxy
97
+ proxy = @paramlist['PROXY'].to_s
98
+ return proxy unless proxy.empty?
99
+ end
100
+
101
+ def get_emails
102
+ email = @paramlist['EMAILS'].to_s
103
+ return email unless email.empty?
104
+ end
105
+
106
+ def get_http_country
107
+ httmcountry = @paramlist['HTTP_COUNTRY'].to_s
108
+ return httmcountry unless httmcountry.empty?
109
+ end
110
+
111
+ def get_timezone
112
+ timezone = @paramlist['TIMEZONE'].to_s
113
+ return timezone unless timezone.empty?
114
+ end
115
+
116
+ def get_cards
117
+ cards = @paramlist['CARDS'].to_s
118
+ return cards unless cards.empty?
119
+ end
120
+
121
+ def get_pc_remote
122
+ pcremote = @paramlist['PC_REMOTE'].to_s
123
+ return pcremote unless pcremote.empty?
124
+ end
125
+
126
+ def get_devices
127
+ devices = @paramlist['DEVICES'].to_s
128
+ return devices unless devices.empty?
129
+ end
130
+
131
+ def get_device_layers
132
+ device_layers = @paramlist['DEVICE_LAYERS'].to_s
133
+ return device_layers unless device_layers.empty?
134
+ end
135
+
136
+ def get_mobile_forwarder
137
+ mobile_forwarder = @paramlist['MOBILE_FORWARDER'].to_s
138
+ return mobile_forwarder unless mobile_forwarder.empty?
139
+ end
140
+
141
+ def get_voice_device
142
+ voicedevice = @paramlist['VOICE_DEVICE'].to_s
143
+ return voicedevice unless voicedevice.empty?
144
+ end
145
+
146
+ def get_local_time
147
+ localtime = @paramlist['LOCALTIME'].to_s
148
+ return localtime unless localtime.empty?
149
+ end
150
+
151
+ def get_mobile_type
152
+ mobiletype = @paramlist['MOBILE_TYPE'].to_s
153
+ return mobiletype unless mobiletype.empty?
154
+ end
155
+
156
+ def get_fingerprint
157
+ fingerprint = @paramlist['FINGERPRINT'].to_s
158
+ return fingerprint unless fingerprint.empty?
159
+ end
160
+
161
+ def get_flash
162
+ flash = @paramlist['FLASH'].to_s
163
+ return flash unless flash.empty?
164
+ end
165
+
166
+ def get_language
167
+ language = @paramlist['LANGUAGE'].to_s
168
+ return language unless language.empty?
169
+ end
170
+
171
+ def get_country
172
+ country = @paramlist['COUNTRY'].to_s
173
+ return country unless country.empty?
174
+ end
175
+
176
+ def get_javascript
177
+ javascript = @paramlist['JAVASCRIPT'].to_s
178
+ return javascript unless javascript.empty?
179
+ end
180
+
181
+ def get_cookies
182
+ cookie = @paramlist['COOKIES'].to_s
183
+ return cookie unless cookie.empty?
184
+ end
185
+
186
+ def get_mobile_device
187
+ mobiledevice = @paramlist['MOBILE_DEVICE'].to_s
188
+ return mobiledevice unless mobiledevice.empty?
189
+ end
190
+
191
+ def get_pierced_ipaddress
192
+ pip_address = @paramlist['PIP_IPAD'].to_s
193
+ return pip_address unless pip_address.empty?
194
+ end
195
+
196
+ def get_piercedipaddress_latitude
197
+ pip_lat = @paramlist['PIP_LAT'].to_s
198
+ return pip_lat unless pip_lat.empty?
199
+ end
200
+
201
+ def get_piercedipaddress_longitude
202
+ pip_long = @paramlist['PIP_LON'].to_s
203
+ return pip_long unless pip_long.empty?
204
+ end
205
+
206
+ def get_piercedipaddress_country
207
+ pip_country = @paramlist['PIP_COUNTRY'].to_s
208
+ return pip_country unless pip_country.empty?
209
+ end
210
+
211
+ def get_piercedipaddress_region
212
+ pip_region = @paramlist['PIP_REGION'].to_s
213
+ return pip_region unless pip_region.empty?
214
+ end
215
+
216
+ def get_piercedipaddress_city
217
+ pip_city = @paramlist['PIP_CITY'].to_s
218
+ return pip_city unless pip_city.empty?
219
+ end
220
+
221
+ def get_piercedipaddress_organization
222
+ pip_org = @paramlist['PIP_ORG'].to_s
223
+ return pip_org unless pip_org.empty?
224
+ end
225
+
226
+ def get_ipaddress
227
+ ip_ipad = @paramlist['IP_IPAD'].to_s
228
+ return ip_ipad unless ip_ipad.empty?
229
+ end
230
+
231
+ def get_ipaddress_latitude
232
+ ip_lat = @paramlist['IP_LAT'].to_s
233
+ return ip_lat unless ip_lat.empty?
234
+ end
235
+
236
+ def get_ipaddress_longitude
237
+ ip_long = @paramlist['IP_LON'].to_s
238
+ return ip_long unless ip_long.empty?
239
+ end
240
+
241
+ def get_ipaddress_country
242
+ ip_country = @paramlist['IP_COUNTRY'].to_s
243
+ return ip_country unless ip_country.empty?
244
+ end
245
+
246
+ def get_ipaddress_region
247
+ ip_region = @paramlist['IP_REGION'].to_s
248
+ return ip_region unless ip_region.empty?
249
+ end
250
+
251
+ def get_ipaddress_city
252
+ ip_city = @paramlist['IP_CITY'].to_s
253
+ return ip_city unless ip_city.empty?
254
+ end
255
+
256
+ def get_ipaddress_organization
257
+ ip_org = @paramlist['IP_ORG'].to_s
258
+ return ip_org unless ip_org.empty?
259
+ end
260
+
261
+ def get_date_device_firstseen
262
+ ddfs = @paramlist['DDFS'].to_s
263
+ return ddfs unless ddfs.empty?
264
+ end
265
+
266
+ def get_useragent_string
267
+ user_agent = @paramlist['UAS'].to_s
268
+ return user_agent unless user_agent.empty?
269
+ end
270
+
271
+ def get_devicescreen_resolution
272
+ dsr = @paramlist['DSR'].to_s
273
+ return dsr unless dsr.empty?
274
+ end
275
+
276
+ def get_os
277
+ os = @paramlist['OS'].to_s
278
+ return os unless os.empty?
279
+ end
280
+
281
+ def get_browser
282
+ browser = @paramlist['BROWSER'].to_s
283
+ return browser unless browser.empty?
284
+ end
285
+
286
+ def get_numberrules_triggered
287
+ # changed due to rubocop styling rules for ruby
288
+ @paramlist['RULES_TRIGGERED'].to_s
289
+ end
290
+
291
+ def get_rules_triggered
292
+ rules_count = get_numberrules_triggered
293
+ rules = []
294
+ (0..rules_count.to_i - 1).each do |i|
295
+ ruleid = @paramlist["RULE_ID_#{i}"]
296
+ rules[ruleid.to_i] = @paramlist["RULE_DESCRIPTION_#{i}"]
297
+ end
298
+ rules.compact
299
+ end
300
+
301
+ def get_warning_count
302
+ # changed due to rubocop styling rules for ruby
303
+ @paramlist['WARNING_COUNT'].to_s
304
+ end
305
+
306
+ def get_warnings
307
+ warnings = []
308
+ warningcount = get_warning_count
309
+ (0..warningcount.to_i - 1).each do |i|
310
+ warnings = @paramlist["WARNING_#{i}"]
311
+ end
312
+ warnings.compact
313
+ end
314
+
315
+ def get_error_count
316
+ # changed due to rubocop styling rules for ruby
317
+ @paramlist['ERROR_COUNT'].to_s
318
+ end
319
+
320
+ def geterrors
321
+ errors = []
322
+ error_count = get_error_count
323
+ (0..error_count.to_i - 1).each do |i|
324
+ errors = @paramlist["ERROR_#{i}"]
325
+ end
326
+ errors.compact
327
+ end
328
+
329
+ def get_numbercounters_triggered
330
+ # changed due to rubocop styling rules for ruby
331
+ @paramlist['COUNTERS_TRIGGERED'].to_s
332
+ end
333
+
334
+ def get_counters_triggered
335
+ counters = []
336
+ numCounters = get_numbercounters_triggered
337
+ (0..numCounters.to_i - 1).each do |i|
338
+ countername = @paramlist["COUNTER_NAME_#{i}"]
339
+ counters[countername.to_s] = @paramlist["COUNTER_VALUE_#{i}"]
340
+ end
341
+ counters.compact
342
+ end
343
+ end
344
+ end