laximo 0.8 → 0.8.1
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 +4 -4
- data/LICENSE.BSD +1 -1
- data/README.md +14 -14
- data/lib/laximo/oem.rb +17 -11
- data/lib/laximo/respond.rb +1 -1
- data/lib/laximo/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 28edc5878491fa8bfe606c59b36a6b3cb9b9250b90eb1171aab7cdc13bab79f6
|
|
4
|
+
data.tar.gz: 4d5b34d20dda9a0bfc1a9dab30da38c0d6c572a0e250764bcb9fade0d98476b6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b5d7d83c22fb47de7a11ef338934a96f691295619b0b4bececb8057856adaf0b0f0a667f881c1557750c9684a5352afedafad3cb479f55ae70f281a32fc5426b
|
|
7
|
+
data.tar.gz: d0139defc10f55fdd03e01e1f85d7d8ffde67a7256e8ecbfee1a971edb512dc4473f37e221fa84c36755a59559e22d8533adc03479933271016d9b3882e30276
|
data/LICENSE.BSD
CHANGED
data/README.md
CHANGED
|
@@ -48,26 +48,26 @@ Laximo.options.locale 'ru_RU'
|
|
|
48
48
|
* `result` - возвращает массив хешей или пустой массив, если ничего не найдено, или если в процессе выполения произошла ошибка.
|
|
49
49
|
|
|
50
50
|
### Методы web-сервиса [Laximo.OEM](https://laximo.ru/oem/)
|
|
51
|
-
* [Laximo.oem.list_catalogs(locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:ListCatalogs)
|
|
52
|
-
* [Laximo.oem.get_catalog_info(catalog:, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:GetCatalogInfo)
|
|
51
|
+
* [Laximo.oem.list_catalogs(ssd: nil, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:ListCatalogs)
|
|
52
|
+
* [Laximo.oem.get_catalog_info(catalog:, ssd: nil, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:GetCatalogInfo)
|
|
53
53
|
* [Laximo.oem.find_vehicle_by_vin(vin:, catalog: nil, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:FindVehicleByVIN)
|
|
54
54
|
* [Laximo.oem.find_vehicle_by_frame(frame:, frame_no:, catalog: nil, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:FindVehicleByFrame)
|
|
55
55
|
* [Laximo.oem.find_vehicle_by_frame_no(frame_no:, catalog: nil, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:FindVehicleByFrameNo)
|
|
56
56
|
* [Laximo.oem.find_vehicle(ident_string:, catalog: nil, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:FindVehicle)
|
|
57
|
-
* [Laximo.oem.get_wizard2(catalog:, ssd: nil, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:GetWizard2)
|
|
57
|
+
* [Laximo.oem.get_wizard2(catalog:, ssd: nil, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:GetWizard2)
|
|
58
58
|
* [Laximo.oem.get_wizard_next_step2(catalog:, ssd: nil, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:GetWizardNextStep2)
|
|
59
|
-
* [Laximo.oem.find_vehicle_by_wizard2(catalog:, ssd:
|
|
60
|
-
* [Laximo.oem.get_vehicle_info(catalog:, vehicle_id:, ssd
|
|
59
|
+
* [Laximo.oem.find_vehicle_by_wizard2(catalog:, ssd:, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:FindVehicleByWizard2)
|
|
60
|
+
* [Laximo.oem.get_vehicle_info(catalog:, vehicle_id:, ssd:, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:GetVehicleInfo)
|
|
61
61
|
* [Laximo.oem.exec_custom_operation(catalog:, operation:, param:, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:ExecCustomOperation)
|
|
62
|
-
* [Laximo.oem.list_units(catalog:, vehicle_id:, ssd
|
|
63
|
-
* [Laximo.oem.list_categories(catalog:, vehicle_id:, ssd
|
|
64
|
-
* [Laximo.oem.get_filter_by_unit(catalog:, unit_id:, vehicle_id:, filter:, ssd
|
|
65
|
-
* [Laximo.oem.get_unit_info(catalog:, unit_id:, ssd
|
|
66
|
-
* [Laximo.oem.list_detail_by_unit(catalog:, unit_id:, ssd
|
|
67
|
-
* [Laximo.oem.list_image_map_by_unit(catalog:, unit_id:, ssd:
|
|
68
|
-
* [Laximo.oem.get_filter_by_detail(catalog:, unit_id
|
|
69
|
-
* [Laximo.oem.list_quick_group(catalog
|
|
70
|
-
* [Laximo.oem.list_quick_detail(catalog:, vehicle_id:, quick_group_id:,
|
|
62
|
+
* [Laximo.oem.list_units(catalog:, vehicle_id:, ssd:, category_id: -1, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:ListUnits)
|
|
63
|
+
* [Laximo.oem.list_categories(catalog:, vehicle_id:, ssd:, category_id: -10, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:ListCategories)
|
|
64
|
+
* [Laximo.oem.get_filter_by_unit(catalog:, unit_id:, vehicle_id:, filter:, ssd:, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:GetFilterByUnit)
|
|
65
|
+
* [Laximo.oem.get_unit_info(catalog:, unit_id:, ssd:, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:GetUnitInfo)
|
|
66
|
+
* [Laximo.oem.list_detail_by_unit(catalog:, unit_id:, ssd:, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:ListDetailByUnit)
|
|
67
|
+
* [Laximo.oem.list_image_map_by_unit(catalog:, unit_id:, ssd:)](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:ListImageMapByUnit)
|
|
68
|
+
* [Laximo.oem.get_filter_by_detail(catalog:, unit_id:, detail_id:, filter:, ssd:, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:GetFilterByDetail)
|
|
69
|
+
* [Laximo.oem.list_quick_group(catalog:, vehicle_id, ssd:, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:ListQuickGroup)
|
|
70
|
+
* [Laximo.oem.list_quick_detail(catalog:, vehicle_id:, quick_group_id:, ssd:, all: 1, localized: true, locale: 'ru_RU')](http://wiki.technologytrade.ru/index.php/Laximo_Web-services:OEM:ListQuickDetail)
|
|
71
71
|
|
|
72
72
|
Данные методы возвращают объект, у которого заданы методы:
|
|
73
73
|
|
data/lib/laximo/oem.rb
CHANGED
|
@@ -13,12 +13,14 @@ module Laximo
|
|
|
13
13
|
end # initialize
|
|
14
14
|
|
|
15
15
|
def list_catalogs(
|
|
16
|
+
ssd: nil,
|
|
16
17
|
locale: ::Laximo.options.locale
|
|
17
18
|
)
|
|
18
19
|
|
|
19
20
|
resp = ::Laximo::Query.
|
|
20
21
|
new('ListCatalogs').
|
|
21
22
|
locale(locale).
|
|
23
|
+
ssd(ssd).
|
|
22
24
|
call(@request)
|
|
23
25
|
|
|
24
26
|
::Laximo::Respond::ListCatalogs.new(resp)
|
|
@@ -27,6 +29,7 @@ module Laximo
|
|
|
27
29
|
|
|
28
30
|
def get_catalog_info(
|
|
29
31
|
catalog:,
|
|
32
|
+
ssd: nil,
|
|
30
33
|
locale: ::Laximo.options.locale
|
|
31
34
|
)
|
|
32
35
|
|
|
@@ -34,6 +37,7 @@ module Laximo
|
|
|
34
37
|
new('GetCatalogInfo').
|
|
35
38
|
locale(locale).
|
|
36
39
|
catalog(catalog).
|
|
40
|
+
ssd(ssd).
|
|
37
41
|
call(@request)
|
|
38
42
|
|
|
39
43
|
::Laximo::Respond::GetCatalogInfo.new(resp)
|
|
@@ -154,7 +158,8 @@ module Laximo
|
|
|
154
158
|
|
|
155
159
|
def find_vehicle_by_wizard2(
|
|
156
160
|
catalog:,
|
|
157
|
-
ssd
|
|
161
|
+
ssd:,
|
|
162
|
+
localized: true,
|
|
158
163
|
locale: ::Laximo.options.locale
|
|
159
164
|
)
|
|
160
165
|
|
|
@@ -163,6 +168,7 @@ module Laximo
|
|
|
163
168
|
locale(locale).
|
|
164
169
|
catalog(catalog).
|
|
165
170
|
ssd(ssd).
|
|
171
|
+
localized(localized).
|
|
166
172
|
call(@request)
|
|
167
173
|
|
|
168
174
|
::Laximo::Respond::FindVehicleByWizard2.new(resp)
|
|
@@ -172,7 +178,7 @@ module Laximo
|
|
|
172
178
|
def get_vehicle_info(
|
|
173
179
|
catalog:,
|
|
174
180
|
vehicle_id:,
|
|
175
|
-
ssd
|
|
181
|
+
ssd:,
|
|
176
182
|
localized: true,
|
|
177
183
|
locale: ::Laximo.options.locale
|
|
178
184
|
)
|
|
@@ -212,7 +218,7 @@ module Laximo
|
|
|
212
218
|
def list_units(
|
|
213
219
|
catalog:,
|
|
214
220
|
vehicle_id:,
|
|
215
|
-
ssd
|
|
221
|
+
ssd:,
|
|
216
222
|
category_id: -1,
|
|
217
223
|
localized: true,
|
|
218
224
|
locale: ::Laximo.options.locale
|
|
@@ -235,7 +241,7 @@ module Laximo
|
|
|
235
241
|
def list_categories(
|
|
236
242
|
catalog:,
|
|
237
243
|
vehicle_id:,
|
|
238
|
-
ssd
|
|
244
|
+
ssd:,
|
|
239
245
|
category_id: -1,
|
|
240
246
|
locale: ::Laximo.options.locale
|
|
241
247
|
)
|
|
@@ -258,7 +264,7 @@ module Laximo
|
|
|
258
264
|
unit_id:,
|
|
259
265
|
vehicle_id:,
|
|
260
266
|
filter:,
|
|
261
|
-
ssd
|
|
267
|
+
ssd:,
|
|
262
268
|
locale: ::Laximo.options.locale
|
|
263
269
|
)
|
|
264
270
|
|
|
@@ -279,7 +285,7 @@ module Laximo
|
|
|
279
285
|
def get_unit_info(
|
|
280
286
|
catalog:,
|
|
281
287
|
unit_id:,
|
|
282
|
-
ssd
|
|
288
|
+
ssd:,
|
|
283
289
|
localized: true,
|
|
284
290
|
locale: ::Laximo.options.locale
|
|
285
291
|
)
|
|
@@ -300,7 +306,7 @@ module Laximo
|
|
|
300
306
|
def list_detail_by_unit(
|
|
301
307
|
catalog:,
|
|
302
308
|
unit_id:,
|
|
303
|
-
ssd
|
|
309
|
+
ssd:,
|
|
304
310
|
localized: true,
|
|
305
311
|
locale: ::Laximo.options.locale
|
|
306
312
|
)
|
|
@@ -321,7 +327,7 @@ module Laximo
|
|
|
321
327
|
def list_image_map_by_unit(
|
|
322
328
|
catalog:,
|
|
323
329
|
unit_id:,
|
|
324
|
-
ssd:
|
|
330
|
+
ssd:
|
|
325
331
|
)
|
|
326
332
|
|
|
327
333
|
resp = ::Laximo::Query.
|
|
@@ -340,7 +346,7 @@ module Laximo
|
|
|
340
346
|
unit_id:,
|
|
341
347
|
detail_id:,
|
|
342
348
|
filter:,
|
|
343
|
-
ssd
|
|
349
|
+
ssd:,
|
|
344
350
|
locale: ::Laximo.options.locale
|
|
345
351
|
)
|
|
346
352
|
|
|
@@ -361,7 +367,7 @@ module Laximo
|
|
|
361
367
|
def list_quick_group(
|
|
362
368
|
catalog:,
|
|
363
369
|
vehicle_id:,
|
|
364
|
-
ssd
|
|
370
|
+
ssd:,
|
|
365
371
|
locale: ::Laximo.options.locale
|
|
366
372
|
)
|
|
367
373
|
|
|
@@ -381,8 +387,8 @@ module Laximo
|
|
|
381
387
|
catalog:,
|
|
382
388
|
vehicle_id:,
|
|
383
389
|
quick_group_id:,
|
|
390
|
+
ssd:,
|
|
384
391
|
all: 1,
|
|
385
|
-
ssd: nil,
|
|
386
392
|
localized: true,
|
|
387
393
|
locale: ::Laximo.options.locale
|
|
388
394
|
)
|
data/lib/laximo/respond.rb
CHANGED
data/lib/laximo/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: laximo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 0.8.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ivan Pilyaev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-10-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|
|
@@ -91,8 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
91
91
|
- !ruby/object:Gem::Version
|
|
92
92
|
version: '0'
|
|
93
93
|
requirements: []
|
|
94
|
-
|
|
95
|
-
rubygems_version: 2.7.7
|
|
94
|
+
rubygems_version: 3.0.3
|
|
96
95
|
signing_key:
|
|
97
96
|
specification_version: 4
|
|
98
97
|
summary: Api for Laximo services
|