Class: Laximo::Oem
- Inherits:
-
Object
- Object
- Laximo::Oem
- Defined in:
- lib/laximo/oem.rb
Instance Method Summary collapse
-
#exec_custom_operation(catalog:, operation:, param:, locale: 'ru_RU') ⇒ Object
get_vehicle_info.
-
#find_vehicle_by_frame(frame:, frame_no:, catalog: nil, ssd: nil, localized: true, locale: 'ru_RU') ⇒ Object
find_vehicle_by_vin.
-
#find_vehicle_by_vin(vin:, catalog: nil, ssd: nil, localized: true, locale: 'ru_RU') ⇒ Object
get_catalog_info.
-
#find_vehicle_by_wizard(catalog:, wizard_id: nil, ssd: nil, localized: true, locale: 'ru_RU') ⇒ Object
TODO: Устаревший метод.
-
#find_vehicle_by_wizard2(catalog:, ssd: nil, locale: 'ru_RU') ⇒ Object
find_vehicle_by_wizard.
-
#get_catalog_info(catalog:, ssd: nil, locale: 'ru_RU') ⇒ Object
list_catalogs.
-
#get_filter_by_detail(catalog:, unit_id:, detail_id:, filter:, ssd: nil, locale: 'ru_RU') ⇒ Object
list_image_map_by_unit.
-
#get_filter_by_unit(catalog:, unit_id:, vehicle_id:, filter:, ssd: nil, locale: 'ru_RU') ⇒ Object
list_categories.
-
#get_unit_info(catalog:, unit_id:, ssd: nil, localized: true, locale: 'ru_RU') ⇒ Object
get_filter_by_unit.
-
#get_vehicle_info(catalog:, vehicle_id:, ssd: nil, localized: true, locale: 'ru_RU') ⇒ Object
find_vehicle_by_wizard2.
-
#get_wizard(catalog:, wizard_id: nil, value_id: nil, locale: 'ru_RU') ⇒ Object
TODO: Устаревший метод.
-
#get_wizard2(catalog:, ssd: nil, locale: 'ru_RU') ⇒ Object
get_wizard.
-
#get_wizard_next_step2(catalog:, ssd: nil, locale: 'ru_RU') ⇒ Object
get_wizard2.
-
#initialize ⇒ Oem
constructor
A new instance of Oem.
-
#list_catalogs(ssd: nil, locale: 'ru_RU') ⇒ Object
initialize.
-
#list_categories(catalog:, vehicle_id:, ssd: nil, category_id: -1,, locale: 'ru_RU') ⇒ Object
list_units.
-
#list_detail_by_unit(catalog:, unit_id:, ssd: nil, localized: true, locale: 'ru_RU') ⇒ Object
get_unit_info.
-
#list_image_map_by_unit(catalog:, unit_id:, ssd: nil) ⇒ Object
list_detail_by_unit.
-
#list_quick_detail(catalog:, vehicle_id:, quick_group_id:, all: 1, ssd: nil, localized: true, locale: 'ru_RU') ⇒ Object
list_quick_group.
-
#list_quick_group(catalog:, vehicle_id:, ssd: nil, locale: 'ru_RU') ⇒ Object
get_filter_by_detail.
-
#list_units(catalog:, vehicle_id:, ssd: nil, category_id: -1,, localized: true, locale: 'ru_RU') ⇒ Object
exec_custom_operation.
Constructor Details
#initialize ⇒ Oem
Returns a new instance of Oem.
6 7 8 9 10 11 12 13 |
# File 'lib/laximo/oem.rb', line 6 def initialize @request = ::Laximo::Request.new( ::Laximo..oem_soap_endpoint, ::Laximo..oem_soap_action ) end |
Instance Method Details
#exec_custom_operation(catalog:, operation:, param:, locale: 'ru_RU') ⇒ Object
get_vehicle_info
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 |
# File 'lib/laximo/oem.rb', line 209 def exec_custom_operation( catalog:, operation:, param:, locale: 'ru_RU' ) resp = ::Laximo::Query. new('GetVehicleInfo'). locale(locale). catalog(catalog). operation(operation). param(param). call(@request) ::Laximo::Respond::ExecCustomOperation.new(resp) end |
#find_vehicle_by_frame(frame:, frame_no:, catalog: nil, ssd: nil, localized: true, locale: 'ru_RU') ⇒ Object
find_vehicle_by_vin
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/laximo/oem.rb', line 68 def find_vehicle_by_frame( frame:, frame_no:, catalog: nil, ssd: nil, localized: true, locale: 'ru_RU' ) resp = ::Laximo::Query. new('FindVehicleByFrame'). locale(locale). catalog(catalog). frame(frame). frame_no(frame_no). ssd(ssd). localized(localized). call(@request) ::Laximo::Respond::FindVehicleByFrame.new(resp) end |
#find_vehicle_by_vin(vin:, catalog: nil, ssd: nil, localized: true, locale: 'ru_RU') ⇒ Object
get_catalog_info
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/laximo/oem.rb', line 47 def find_vehicle_by_vin( vin:, catalog: nil, ssd: nil, localized: true, locale: 'ru_RU' ) resp = ::Laximo::Query. new('FindVehicleByVIN'). locale(locale). ssd(ssd). catalog(catalog). vin(vin). localized(localized). call(@request) ::Laximo::Respond::FindVehicleByVin.new(resp) end |
#find_vehicle_by_wizard(catalog:, wizard_id: nil, ssd: nil, localized: true, locale: 'ru_RU') ⇒ Object
TODO: Устаревший метод
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 |
# File 'lib/laximo/oem.rb', line 148 def find_vehicle_by_wizard( catalog:, wizard_id: nil, ssd: nil, localized: true, locale: 'ru_RU' ) ::Laximo.deprecated! resp = ::Laximo::Query. new('FindVehicleByWizard'). locale(locale). wizard_id(wizard_id). catalog(catalog). ssd(ssd). localized(localized). call(@request) ::Laximo::Respond::FindVehicleByWizard.new(resp) end |
#find_vehicle_by_wizard2(catalog:, ssd: nil, locale: 'ru_RU') ⇒ Object
find_vehicle_by_wizard
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 |
# File 'lib/laximo/oem.rb', line 171 def find_vehicle_by_wizard2( catalog:, ssd: nil, locale: 'ru_RU' ) resp = ::Laximo::Query. new('FindVehicleByWizard2'). locale(locale). catalog(catalog). ssd(ssd). call(@request) ::Laximo::Respond::FindVehicleByWizard2.new(resp) end |
#get_catalog_info(catalog:, ssd: nil, locale: 'ru_RU') ⇒ Object
list_catalogs
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/laximo/oem.rb', line 30 def get_catalog_info( catalog:, ssd: nil, locale: 'ru_RU' ) resp = ::Laximo::Query. new('GetCatalogInfo'). locale(locale). ssd(ssd). catalog(catalog). call(@request) ::Laximo::Respond::GetCatalogInfo.new(resp) end |
#get_filter_by_detail(catalog:, unit_id:, detail_id:, filter:, ssd: nil, locale: 'ru_RU') ⇒ Object
list_image_map_by_unit
354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 |
# File 'lib/laximo/oem.rb', line 354 def get_filter_by_detail( catalog:, unit_id:, detail_id:, filter:, ssd: nil, locale: 'ru_RU' ) resp = ::Laximo::Query. new('GetFilterByDetail'). locale(locale). catalog(catalog). unit_id(unit_id). detail_id(detail_id). filter(filter). ssd(ssd). call(@request) ::Laximo::Respond::GetFilterByDetail.new(resp) end |
#get_filter_by_unit(catalog:, unit_id:, vehicle_id:, filter:, ssd: nil, locale: 'ru_RU') ⇒ Object
list_categories
272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 |
# File 'lib/laximo/oem.rb', line 272 def get_filter_by_unit( catalog:, unit_id:, vehicle_id:, filter:, ssd: nil, locale: 'ru_RU' ) resp = ::Laximo::Query. new('GetFilterByUnit'). locale(locale). catalog(catalog). unit_id(unit_id). vehicle_id(vehicle_id). filter(filter). ssd(ssd). call(@request) ::Laximo::Respond::GetFilterByUnit.new(resp) end |
#get_unit_info(catalog:, unit_id:, ssd: nil, localized: true, locale: 'ru_RU') ⇒ Object
get_filter_by_unit
295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 |
# File 'lib/laximo/oem.rb', line 295 def get_unit_info( catalog:, unit_id:, ssd: nil, localized: true, locale: 'ru_RU' ) resp = ::Laximo::Query. new('GetUnitInfo'). locale(locale). catalog(catalog). ssd(ssd). unit_id(unit_id). localized(localized). call(@request) ::Laximo::Respond::GetUnitInfo.new(resp) end |
#get_vehicle_info(catalog:, vehicle_id:, ssd: nil, localized: true, locale: 'ru_RU') ⇒ Object
find_vehicle_by_wizard2
188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 |
# File 'lib/laximo/oem.rb', line 188 def get_vehicle_info( catalog:, vehicle_id:, ssd: nil, localized: true, locale: 'ru_RU' ) resp = ::Laximo::Query. new('GetVehicleInfo'). locale(locale). catalog(catalog). vehicle_id(vehicle_id). ssd(ssd). localized(localized). call(@request) ::Laximo::Respond::GetVehicleInfo.new(resp) end |
#get_wizard(catalog:, wizard_id: nil, value_id: nil, locale: 'ru_RU') ⇒ Object
TODO: Устаревший метод
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 |
# File 'lib/laximo/oem.rb', line 92 def get_wizard( catalog:, wizard_id: nil, value_id: nil, locale: 'ru_RU' ) ::Laximo.deprecated! resp = ::Laximo::Query. new('GetWizard'). locale(locale). catalog(catalog). wizard_id(wizard_id). value_id(value_id). call(@request) ::Laximo::Respond::GetWizard.new(resp) end |
#get_wizard2(catalog:, ssd: nil, locale: 'ru_RU') ⇒ Object
get_wizard
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/laximo/oem.rb', line 113 def get_wizard2( catalog:, ssd: nil, locale: 'ru_RU' ) resp = ::Laximo::Query. new('GetWizard2'). locale(locale). catalog(catalog). ssd(ssd). call(@request) ::Laximo::Respond::GetWizard2.new(resp) end |
#get_wizard_next_step2(catalog:, ssd: nil, locale: 'ru_RU') ⇒ Object
get_wizard2
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
# File 'lib/laximo/oem.rb', line 130 def get_wizard_next_step2( catalog:, ssd: nil, locale: 'ru_RU' ) resp = ::Laximo::Query. new('GetWizardNextStep2'). locale(locale). catalog(catalog). ssd(ssd). call(@request) ::Laximo::Respond::GetWizardNextStep2.new(resp) end |
#list_catalogs(ssd: nil, locale: 'ru_RU') ⇒ Object
initialize
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/laximo/oem.rb', line 15 def list_catalogs( ssd: nil, locale: 'ru_RU' ) resp = ::Laximo::Query. new('ListCatalogs'). locale(locale). ssd(ssd). call(@request) ::Laximo::Respond::ListCatalogs.new(resp) end |
#list_categories(catalog:, vehicle_id:, ssd: nil, category_id: -1,, locale: 'ru_RU') ⇒ Object
list_units
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 |
# File 'lib/laximo/oem.rb', line 251 def list_categories( catalog:, vehicle_id:, ssd: nil, category_id: -1, locale: 'ru_RU' ) resp = ::Laximo::Query. new('ListCategories'). locale(locale). catalog(catalog). vehicle_id(vehicle_id). category_id(category_id). ssd(ssd). call(@request) ::Laximo::Respond::ListCategories.new(resp) end |
#list_detail_by_unit(catalog:, unit_id:, ssd: nil, localized: true, locale: 'ru_RU') ⇒ Object
get_unit_info
316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 |
# File 'lib/laximo/oem.rb', line 316 def list_detail_by_unit( catalog:, unit_id:, ssd: nil, localized: true, locale: 'ru_RU' ) resp = ::Laximo::Query. new('ListDetailByUnit'). locale(locale). catalog(catalog). ssd(ssd). unit_id(unit_id). localized(localized). call(@request) ::Laximo::Respond::ListDetailByUnit.new(resp) end |
#list_image_map_by_unit(catalog:, unit_id:, ssd: nil) ⇒ Object
list_detail_by_unit
337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 |
# File 'lib/laximo/oem.rb', line 337 def list_image_map_by_unit( catalog:, unit_id:, ssd: nil ) resp = ::Laximo::Query. new('ListImageMapByUnit'). catalog(catalog). ssd(ssd). unit_id(unit_id). call(@request) ::Laximo::Respond::ListImageMapByUnit.new(resp) end |
#list_quick_detail(catalog:, vehicle_id:, quick_group_id:, all: 1, ssd: nil, localized: true, locale: 'ru_RU') ⇒ Object
list_quick_group
396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 |
# File 'lib/laximo/oem.rb', line 396 def list_quick_detail( catalog:, vehicle_id:, quick_group_id:, all: 1, ssd: nil, localized: true, locale: 'ru_RU' ) resp = ::Laximo::Query. new('ListQuickDetail'). locale(locale). catalog(catalog). vehicle_id(vehicle_id). quick_group_id(quick_group_id). all(all). ssd(ssd). localized(localized). call(@request) ::Laximo::Respond::ListQuickDetail.new(resp) end |
#list_quick_group(catalog:, vehicle_id:, ssd: nil, locale: 'ru_RU') ⇒ Object
get_filter_by_detail
377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 |
# File 'lib/laximo/oem.rb', line 377 def list_quick_group( catalog:, vehicle_id:, ssd: nil, locale: 'ru_RU' ) resp = ::Laximo::Query. new('ListQuickGroup'). locale(locale). catalog(catalog). vehicle_id(vehicle_id). ssd(ssd). call(@request) ::Laximo::Respond::ListQuickGroup.new(resp) end |
#list_units(catalog:, vehicle_id:, ssd: nil, category_id: -1,, localized: true, locale: 'ru_RU') ⇒ Object
exec_custom_operation
228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 |
# File 'lib/laximo/oem.rb', line 228 def list_units( catalog:, vehicle_id:, ssd: nil, category_id: -1, localized: true, locale: 'ru_RU' ) resp = ::Laximo::Query. new('ListUnits'). locale(locale). catalog(catalog). vehicle_id(vehicle_id). category_id(category_id). ssd(ssd). localized(localized). call(@request) ::Laximo::Respond::ListUnits.new(resp) end |