Module: Laximo
- Extended by:
- Laximo
- Included in:
- Laximo
- Defined in:
- lib/laximo.rb,
lib/laximo/am.rb,
lib/laximo/oem.rb,
lib/laximo/query.rb,
lib/laximo/errors.rb,
lib/laximo/options.rb,
lib/laximo/request.rb,
lib/laximo/respond.rb,
lib/laximo/version.rb,
lib/laximo/respond/am/find_oem.rb,
lib/laximo/respond/am/find_detail.rb,
lib/laximo/respond/oem/list_units.rb,
lib/laximo/respond/oem/get_wizard2.rb,
lib/laximo/respond/oem/find_vehicle.rb,
lib/laximo/respond/oem/get_unit_info.rb,
lib/laximo/respond/oem/list_catalogs.rb,
lib/laximo/respond/oem/list_categories.rb,
lib/laximo/respond/am/find_replacements.rb,
lib/laximo/respond/am/list_manufacturer.rb,
lib/laximo/respond/am/manufacturer_info.rb,
lib/laximo/respond/oem/get_catalog_info.rb,
lib/laximo/respond/oem/get_vehicle_info.rb,
lib/laximo/respond/oem/list_quick_group.rb,
lib/laximo/respond/oem/list_quick_detail.rb,
lib/laximo/respond/am/find_oem_correction.rb,
lib/laximo/respond/oem/get_filter_by_unit.rb,
lib/laximo/respond/oem/find_vehicle_by_vin.rb,
lib/laximo/respond/oem/list_detail_by_unit.rb,
lib/laximo/respond/oem/get_filter_by_detail.rb,
lib/laximo/respond/oem/exec_custom_operation.rb,
lib/laximo/respond/oem/find_vehicle_by_frame.rb,
lib/laximo/respond/oem/get_wizard_next_step2.rb,
lib/laximo/respond/oem/list_image_map_by_unit.rb,
lib/laximo/respond/oem/find_vehicle_by_wizard2.rb,
lib/laximo/respond/oem/find_vehicle_by_frame_no.rb,
lib/laximo/respond/oem/vehicle_with_list_categories.rb,
lib/laximo/respond/oem/vehicle_with_list_quick_detail.rb,
lib/laximo/respond/oem/vehicle_with_list_quick_groups.rb,
lib/laximo/respond/oem/vehicle_with_list_details_by_unit.rb,
lib/laximo/respond/oem/vehicle_with_list_categories_and_units.rb,
lib/laximo/respond/oem/vehicle_with_list_categories_and_quick_groups.rb
Defined Under Namespace
Modules: Options, Respond
Classes: Am, Error, Oem, Query, Request, SoapAccessDeniedError, SoapCatalogNotExistsError, SoapEmptyResponseError, SoapError, SoapGroupIsNotSearchableError, SoapInvalidParameterError, SoapInvalidRequestError, SoapNotSupportedError, SoapTooManyRequestError, SoapUnexpectedError, SoapUnknownCommandError, SslCertificateError
Constant Summary
collapse
- ERRORS =
{
'E_CATALOGNOTEXISTS' => SoapCatalogNotExistsError,
'E_INVALIDPARAMETER' => SoapInvalidParameterError,
'E_INVALIDREQUEST' => SoapInvalidRequestError,
'E_UNKNOWNCOMMAND' => SoapUnknownCommandError,
'E_ACCESSDENIED' => SoapAccessDeniedError,
'E_NOTSUPPORTED' => SoapNotSupportedError,
'E_GROUP_IS_NOT_SEARCHABLE' => SoapGroupIsNotSearchableError,
'E_TOO_MANY_REQUESTS' => SoapTooManyRequestError,
'E_UNEXPECTED_PROBLEM' => SoapUnexpectedError
}.freeze
- REQUEST_LOGIN_MSG =
%{<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns5692:QueryDataLogin xmlns:ns5692="%{act}">
<request xsi:type="xsd:string">%{msg}</request>
<login xsi:type="xsd:string">%{login}</login>
<hmac xsi:type="xsd:string">%{hash}</hmac>
</ns5692:QueryDataLogin>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>}.freeze
- VERSION =
'0.9.5'.freeze
Instance Method Summary
collapse
Instance Method Details
#am ⇒ Object
31
32
33
|
# File 'lib/laximo.rb', line 31
def am
::Laximo::Am.new
end
|
#deprecated! ⇒ Object
55
56
57
58
59
60
61
|
# File 'lib/laximo.rb', line 55
def deprecated!
puts "***"
puts "*** DEPRECATION WARNING! Method `#{caller[0][/`.*'/][1..-2]}` is deprecated and will not support in the future"
puts "***"
end
|
#oem ⇒ Object
35
36
37
|
# File 'lib/laximo.rb', line 35
def oem
::Laximo::Oem.new
end
|
#options ⇒ Object
27
28
29
|
# File 'lib/laximo.rb', line 27
def options
::Laximo::Options
end
|
#tryer(try_iter: 10, time: 61) ⇒ Object
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# File 'lib/laximo.rb', line 39
def tryer(try_iter: 10, time: 61)
cl = caller[0][/`.*'/][1..-2]
yield
rescue ::Laximo::SoapTooManyRequestError
try_iter = try_iter - 1
puts "[Method: #{cl}] Waiting #{time} sec."
sleep time
try_iter > 0 ? retry : raise
end
|