laximo 0.9.3 → 0.9.4
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/README.md +1 -0
- data/lib/laximo/oem.rb +46 -0
- data/lib/laximo/respond/oem/vehicle_with_list_categories_and_quick_groups.rb +25 -0
- data/lib/laximo/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8c1fc3062561392376c3275c226adfb7ee0401bf456cfe172bff1fdc8daac561
|
|
4
|
+
data.tar.gz: 9b6868df435ff71efe33f71499b8bd45e7e5b753004de425a85b2d11f244daac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 896ce0cf07132767282e0399f5fe30e42de5a6ec0d2e6fe2b052515cb39969367ce548d59159fd4358d56281b7c432d857274e8de83ef3939094c7b2b32ec199
|
|
7
|
+
data.tar.gz: 76f4b4cbb058ef560bdd3dfcd48d4e94192c9b70a7d1857c5ee7182c1f12164af6c1030835aa44223fd01459148dc8812dba3762feb0970f3b37500db52148fd
|
data/README.md
CHANGED
|
@@ -71,6 +71,7 @@ Laximo.options.locale 'ru_RU'
|
|
|
71
71
|
* [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)
|
|
72
72
|
|
|
73
73
|
### Комбинированные методы web-сервиса [wsdemo.laximo](https://wsdemo.laximo.ru/)
|
|
74
|
+
* `Laximo.oem.vehicle_with_list_categories_and_quick_groups(vehicle_id:, catalog:, ssd:, localized: true, locale: 'ru_RU')` Информация о каталоге, модификации, списке категорий и списке групп быстрого поиска деталей
|
|
74
75
|
* [Laximo.oem.vehicle_with_list_categories(vehicle_id:, catalog:, ssd:, category_id: -1,localized: true, locale: 'ru_RU')](https://wsdemo.laximo.ru/index.php?task=qgroups&oem=&useApplicability=1&c=CFIAT84&vid=5182&ssd=$*KwHZ7fzGvYurq5yGiNj16YGVtbKs2tne3czfwZ-1joOPqt69zN_IipmehZi1g4Dy5uaq2dze29rd34KIldrY296ViYKD3cnSq97d3pWOjJbt08a0h4KCn4Kt3YvCxJmDm4mruZOK3NvJhY-ygoSq3NuKipHc2pOFj6rckd_Tzp-Crd3ZlICZwfyR3trc2d7a3d6CjJCVnIiEgomBiu3Sz6va2t3Z0tjai8LZjoufrNna3dYAAAAAeCpr2w$)
|
|
75
76
|
* [Laximo.oem.vehicle_with_list_quick_groups(vehicle_id:, catalog:, ssd:, localized: true, locale: 'ru_RU')](https://wsdemo.laximo.ru/index.php?task=vehicle&c=CFIAT84&vid=5182&ssd=$*KwGFsaCa4df398Da1ISptd3J6e7whoWCgZCDncPp0t_T9oLhkIOU1sXC2cTp39yuurr2hYCCh4aBg97UyYaEh4LJ1d7fgZWO94KBgsnS0Mqxj5ro297ew97xgdeemMXfx9X35c_WgIeV2dPu3tj2gIfW1s2Ahs_Z0_aAzYOPksPe8YGFyNzFnaDNgoaAhYKGgYLe0MzJwNTY3tXd1rGOk_eGhoGFjoSG156F0tfD8IWGgYoAAAAAbHr5DQ$)
|
|
76
77
|
* [Laximo.oem.vehicle_with_list_quick_detail(vehicle_id:, catalog:, ssd:, quick_group_id:, all: 1, localized: true, locale: 'ru_RU')](https://wsdemo.laximo.ru/index.php?task=qgroups&c=CFIAT84&vid=5182&ssd=$*KwEbLz4Ef0lpaV5ESho3K0NXd3BuGBscHw4dA113TEFNaBx_Dh0KSFtcR1p3QUIwJCRoGx4cGRgfHUBKVxgaGRxXS0BBHwsQaRwfHFdMTlQvEQR2RUBAXUBvH0kABltBWUtpe1FIHhkLR01wQEZoHhlISFMeGFFHTWgeUx0RDF1Abx8bVkJbAz5THBgeGxwYHxxATlJXXkpGQEtDSC8QDWkYGB8bEBoYSQAbTEldbhsYHxQAAAAAnyRrTQ$&gid=2)
|
data/lib/laximo/oem.rb
CHANGED
|
@@ -411,6 +411,52 @@ module Laximo
|
|
|
411
411
|
#
|
|
412
412
|
# Специальные комбинированные методы
|
|
413
413
|
#
|
|
414
|
+
def vehicle_with_list_categories_and_quick_groups(
|
|
415
|
+
vehicle_id:,
|
|
416
|
+
catalog:,
|
|
417
|
+
ssd:,
|
|
418
|
+
localized: true,
|
|
419
|
+
locale: ::Laximo.options.locale
|
|
420
|
+
)
|
|
421
|
+
|
|
422
|
+
# Информация о каталоге
|
|
423
|
+
r1 = ::Laximo::Query.
|
|
424
|
+
new('GetCatalogInfo').
|
|
425
|
+
locale(locale).
|
|
426
|
+
catalog(catalog).
|
|
427
|
+
ssd(ssd)
|
|
428
|
+
|
|
429
|
+
# Информация по конкретному автомобилю (модификации)
|
|
430
|
+
r2 = ::Laximo::Query.
|
|
431
|
+
new('GetVehicleInfo').
|
|
432
|
+
locale(locale).
|
|
433
|
+
catalog(catalog).
|
|
434
|
+
vehicle_id(vehicle_id).
|
|
435
|
+
ssd(ssd).
|
|
436
|
+
localized(localized)
|
|
437
|
+
|
|
438
|
+
# Список категорий каталога
|
|
439
|
+
r3 = ::Laximo::Query.
|
|
440
|
+
new('ListCategories').
|
|
441
|
+
locale(locale).
|
|
442
|
+
catalog(catalog).
|
|
443
|
+
vehicle_id(vehicle_id).
|
|
444
|
+
category_id(-1).
|
|
445
|
+
ssd(ssd)
|
|
446
|
+
|
|
447
|
+
# Список групп быстрого поиска деталей
|
|
448
|
+
r4 = ::Laximo::Query.
|
|
449
|
+
new('ListQuickGroup').
|
|
450
|
+
locale(locale).
|
|
451
|
+
catalog(catalog).
|
|
452
|
+
vehicle_id(vehicle_id).
|
|
453
|
+
ssd(ssd)
|
|
454
|
+
|
|
455
|
+
::Laximo::Respond::VehicleWithListCategoriesAndQuickGroups.new(
|
|
456
|
+
@request.call(r1, r2, r3, r4)
|
|
457
|
+
)
|
|
458
|
+
|
|
459
|
+
end # vehicle_with_list_categories_and_quick_groups
|
|
414
460
|
|
|
415
461
|
def vehicle_with_list_categories(
|
|
416
462
|
vehicle_id:,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
module Laximo
|
|
3
|
+
|
|
4
|
+
module Respond
|
|
5
|
+
|
|
6
|
+
class VehicleWithListCategoriesAndQuickGroups < Laximo::Respond::Base
|
|
7
|
+
|
|
8
|
+
def self.parsing_result(str)
|
|
9
|
+
|
|
10
|
+
{
|
|
11
|
+
|
|
12
|
+
get_catalog_info: GetCatalogInfo.parsing_result(str),
|
|
13
|
+
get_vehicle_info: GetVehicleInfo.parsing_result(str),
|
|
14
|
+
list_categories: ListCategories.parsing_result(str),
|
|
15
|
+
list_quick_group: ListQuickGroup.parsing_result(str)
|
|
16
|
+
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
end # VehicleWithListQuickDetail
|
|
22
|
+
|
|
23
|
+
end # Respond
|
|
24
|
+
|
|
25
|
+
end # Laximo
|
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: 0.9.
|
|
4
|
+
version: 0.9.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ivan Pilyaev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-02-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|
|
@@ -72,6 +72,7 @@ files:
|
|
|
72
72
|
- lib/laximo/respond/oem/list_quick_group.rb
|
|
73
73
|
- lib/laximo/respond/oem/list_units.rb
|
|
74
74
|
- lib/laximo/respond/oem/vehicle_with_list_categories.rb
|
|
75
|
+
- lib/laximo/respond/oem/vehicle_with_list_categories_and_quick_groups.rb
|
|
75
76
|
- lib/laximo/respond/oem/vehicle_with_list_details_by_unit.rb
|
|
76
77
|
- lib/laximo/respond/oem/vehicle_with_list_quick_detail.rb
|
|
77
78
|
- lib/laximo/respond/oem/vehicle_with_list_quick_groups.rb
|