rail-locator-api 1.0.16 → 1.0.18
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1edc312aa5f07d150eb51199c45261714727ceb928926c0d1abf8eafca2af2d0
|
4
|
+
data.tar.gz: f2417580821577d93871b56b4d31d3f062be455d1ab5371ff5d7773fb5dd42cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 254c38cbae810b90ae2db2d53dbc5be043a18169b33b40e558651d5c051af1300825b56c5d61bdf964da4a8676e5579bcf6890e18aa2ab28f50d5f800846477a
|
7
|
+
data.tar.gz: e7e6a777359ecebf0170efa6542545304268fafdfdcb5bb8323a512227e110602dc52a2e874b29e8fb18b6bb111d8ceaf9d2d996856d588b7d7413fbd688c4ee
|
data/README.markdown
CHANGED
@@ -48,7 +48,7 @@ API wrapper для RailLocator API v2
|
|
48
48
|
|
49
49
|
# <a name="install"></a> Установка
|
50
50
|
|
51
|
-
Для авторизации по api key необходимо получить его [в личном кабинете локатора](https://rail-
|
51
|
+
Для авторизации по api key необходимо получить его [в личном кабинете локатора](https://rail-scan.com/app/api-keys)
|
52
52
|
или в телеграм боте [@RailLocatorApiBot](https://t.me/RailLocatorApiBot)
|
53
53
|
|
54
54
|
либо использовать другие методы авторизации:
|
@@ -123,7 +123,7 @@ RailLocatorApi::Request.logger = MyLogger.new
|
|
123
123
|
|
124
124
|
# <a name="examples"></a> Примеры
|
125
125
|
## <a name="tracks"></a> Дислокация
|
126
|
-
### <a name="tracks_dislocation_get"></a> [Получение Списка Треков](https://rail-
|
126
|
+
### <a name="tracks_dislocation_get"></a> [Получение Списка Треков](https://rail-scan.com/api/v2.0/redoc#tag/Dislokaciya/operation/________________________tracks_dislocation_get)
|
127
127
|
```ruby
|
128
128
|
request = {
|
129
129
|
"limit": 100,
|
@@ -170,7 +170,7 @@ response = RailLocatorApi::Request.tracks.dislocation.retrieve(body: request)
|
|
170
170
|
p response.body
|
171
171
|
```
|
172
172
|
|
173
|
-
### <a name="tracks_dislocation_post"></a> [Постановка На Слежение](https://rail-
|
173
|
+
### <a name="tracks_dislocation_post"></a> [Постановка На Слежение](https://rail-scan.com/api/v2.0/redoc#tag/Dislokaciya/operation/_______________________tracks_dislocation_post)
|
174
174
|
|
175
175
|
```ruby
|
176
176
|
request = [
|
@@ -186,7 +186,7 @@ response = RailLocatorApi::Request.tracks.dislocation.create(body: request)
|
|
186
186
|
p response.body
|
187
187
|
```
|
188
188
|
|
189
|
-
### <a name="tracks_dislocation_batch_get"></a> [Получение Дислокации По Нескольким Трекам](https://rail-
|
189
|
+
### <a name="tracks_dislocation_batch_get"></a> [Получение Дислокации По Нескольким Трекам](https://rail-scan.com/api/v2.0/redoc#tag/Dislokaciya/operation/__________________________________________tracks_dislocation_batch_get)
|
190
190
|
|
191
191
|
```ruby
|
192
192
|
request = {
|
@@ -199,7 +199,7 @@ response = RailLocatorApi::Request.tracks.dislocation.history.retrieve(body: req
|
|
199
199
|
p response.body
|
200
200
|
```
|
201
201
|
|
202
|
-
### <a name="tracks_dislocation_route_info_get"></a> [Получение Информации О Маршруте](https://rail-
|
202
|
+
### <a name="tracks_dislocation_route_info_get"></a> [Получение Информации О Маршруте](https://rail-scan.com/api/v2.0/redoc#tag/Dislokaciya/operation/________________________________tracks_dislocation_route_info_get)
|
203
203
|
|
204
204
|
```ruby
|
205
205
|
track_id = 1
|
@@ -207,7 +207,7 @@ response = RailLocatorApi::Request.tracks.dislocation(track_id).route.retrieve
|
|
207
207
|
p response.body
|
208
208
|
```
|
209
209
|
|
210
|
-
### <a name="tracks_dislocation__track_id__get"></a> [Получение Дислокации По Одному Треку](https://rail-
|
210
|
+
### <a name="tracks_dislocation__track_id__get"></a> [Получение Дислокации По Одному Треку](https://rail-scan.com/api/v2.0/redoc#tag/Dislokaciya/operation/_____________________________________tracks_dislocation__track_id__get)
|
211
211
|
|
212
212
|
```ruby
|
213
213
|
track_id = 1
|
@@ -217,7 +217,7 @@ p response.body
|
|
217
217
|
|
218
218
|
## <a name="inquiries"></a> Справки
|
219
219
|
|
220
|
-
### <a name="tracks_inquiries_get"></a> [Получение Справок](https://rail-
|
220
|
+
### <a name="tracks_inquiries_get"></a> [Получение Справок](https://rail-scan.com/api/v2.0/redoc#tag/Spravki/operation/__________________tracks_inquiries_get)
|
221
221
|
```ruby
|
222
222
|
request = {
|
223
223
|
"limit": 100,
|
@@ -264,7 +264,7 @@ response = RailLocatorApi::Request.tracks.inquiries.retrieve(body: request)
|
|
264
264
|
p response.body
|
265
265
|
```
|
266
266
|
|
267
|
-
### <a name="tracks_inquiries_post"></a> [Постановка На Слежение](https://rail-
|
267
|
+
### <a name="tracks_inquiries_post"></a> [Постановка На Слежение](https://rail-scan.com/api/v2.0/redoc#tag/Spravki/operation/_______________________tracks_inquiries_post)
|
268
268
|
```ruby
|
269
269
|
request = [
|
270
270
|
{
|
@@ -276,7 +276,7 @@ response = RailLocatorApi::Request.tracks.inquiries.create(body: request)
|
|
276
276
|
p response.body
|
277
277
|
```
|
278
278
|
|
279
|
-
### <a name="tracks_inquiries__track_id__get"></a> [Получение Справки](https://rail-
|
279
|
+
### <a name="tracks_inquiries__track_id__get"></a> [Получение Справки](https://rail-scan.com/api/v2.0/redoc#tag/Spravki/operation/__________________tracks_inquiries__track_id__get)
|
280
280
|
```ruby
|
281
281
|
track_id = 1
|
282
282
|
response = RailLocatorApi::Request.tracks.inquiries(track_id).retrieve
|
@@ -284,7 +284,7 @@ p response.body
|
|
284
284
|
```
|
285
285
|
|
286
286
|
## <a name="approaches"></a> Подходы
|
287
|
-
### <a name="tracks_approaches_post"></a> [Постановка На Слежение](https://rail-
|
287
|
+
### <a name="tracks_approaches_post"></a> [Постановка На Слежение](https://rail-scan.com/api/v2.0/redoc#tag/Podhody/operation/_______________________tracks_approaches_post)
|
288
288
|
```ruby
|
289
289
|
request = [
|
290
290
|
{
|
@@ -304,7 +304,7 @@ p response.body
|
|
304
304
|
```
|
305
305
|
|
306
306
|
## <a name="tech_passport"></a> Тех. паспорт вагона
|
307
|
-
### <a name="tracks_tech_passport_batch_get"></a> [Получение Тех. Паспортов](https://rail-
|
307
|
+
### <a name="tracks_tech_passport_batch_get"></a> [Получение Тех. Паспортов](https://rail-scan.com/api/v2.0/redoc#tag/Teh.-pasport-vagona/operation/_________________________tracks_tech_passport_batch_get)
|
308
308
|
```ruby
|
309
309
|
request = {
|
310
310
|
"track_ids": [
|
@@ -315,7 +315,7 @@ request = {
|
|
315
315
|
response = RailLocatorApi::Request.tracks.dislocation.tech_passports.retrieve(body: request)
|
316
316
|
p response.body
|
317
317
|
```
|
318
|
-
### <a name="tracks_tech_passport__track_id__get"></a> [Получение Тех. Паспорта](https://rail-
|
318
|
+
### <a name="tracks_tech_passport__track_id__get"></a> [Получение Тех. Паспорта](https://rail-scan.com/api/v2.0/redoc#tag/Teh.-pasport-vagona/operation/_________________________tracks_tech_passport__track_id__get)
|
319
319
|
```ruby
|
320
320
|
track_id = 1
|
321
321
|
response = RailLocatorApi::Request.tracks.dislocation(track_id).tech_passports.retrieve
|
@@ -323,7 +323,7 @@ p response.body
|
|
323
323
|
```
|
324
324
|
|
325
325
|
## <a name="tech_condition"></a> Контроль тех. состояния
|
326
|
-
### <a name="tracks_tech_condition_get"></a> [Получение Тех. Состояния](https://rail-
|
326
|
+
### <a name="tracks_tech_condition_get"></a> [Получение Тех. Состояния](https://rail-scan.com/api/v2.0/redoc#tag/Kontrol-teh.-sostoyaniya/operation/_________________________tracks_tech_condition_get)
|
327
327
|
```ruby
|
328
328
|
request = {
|
329
329
|
"limit": 100,
|
@@ -370,7 +370,7 @@ response = RailLocatorApi::Request.tracks.tech_condition.retrieve(body: request)
|
|
370
370
|
p response.body
|
371
371
|
```
|
372
372
|
|
373
|
-
### <a name="tracks_tech_condition_post"></a> [Постановка На Слежение](https://rail-
|
373
|
+
### <a name="tracks_tech_condition_post"></a> [Постановка На Слежение](https://rail-scan.com/api/v2.0/redoc#tag/Kontrol-teh.-sostoyaniya/operation/_______________________tracks_tech_condition_post)
|
374
374
|
|
375
375
|
```ruby
|
376
376
|
request = [
|
@@ -383,7 +383,7 @@ p response.body
|
|
383
383
|
```
|
384
384
|
|
385
385
|
## <a name="update_delete_tracks"></a> Изменение/Снятие треков
|
386
|
-
### <a name="tracks_batch_delete"></a> [Снятие Со Слежения Нескольких Треков](https://rail-
|
386
|
+
### <a name="tracks_batch_delete"></a> [Снятие Со Слежения Нескольких Треков](https://rail-scan.com/api/v2.0/redoc#tag/IzmenenieSnyatie-trekov/operation/_____________________________________tracks_batch_delete)
|
387
387
|
```ruby
|
388
388
|
request = {
|
389
389
|
"track_ids": [
|
@@ -395,7 +395,7 @@ response = RailLocatorApi::Request.tracks.batch.delete(body: request)
|
|
395
395
|
p response.body
|
396
396
|
```
|
397
397
|
|
398
|
-
### <a name="tracks_batch_patch"></a> [Изменение Информации О Нескольких Треках](https://rail-
|
398
|
+
### <a name="tracks_batch_patch"></a> [Изменение Информации О Нескольких Треках](https://rail-scan.com/api/v2.0/redoc#tag/IzmenenieSnyatie-trekov/operation/_________________________________________tracks_batch_patch)
|
399
399
|
```ruby
|
400
400
|
request = [
|
401
401
|
{
|
@@ -407,14 +407,14 @@ response = RailLocatorApi::Request.tracks.batch.update(body: request)
|
|
407
407
|
p response.body
|
408
408
|
```
|
409
409
|
|
410
|
-
### <a name="tracks__track_id__delete"></a> [Снятие Со Слежения Одного Трека](https://rail-
|
410
|
+
### <a name="tracks__track_id__delete"></a> [Снятие Со Слежения Одного Трека](https://rail-scan.com/api/v2.0/redoc#tag/IzmenenieSnyatie-trekov/operation/________________________________tracks__track_id__delete)
|
411
411
|
```ruby
|
412
412
|
track_id = 1
|
413
413
|
response = RailLocatorApi::Request.tracks(track_id).delete
|
414
414
|
p response.body
|
415
415
|
```
|
416
416
|
|
417
|
-
### <a name="tracks__track_id__patch"></a> [Изменение Информации О Треке](https://rail-
|
417
|
+
### <a name="tracks__track_id__patch"></a> [Изменение Информации О Треке](https://rail-scan.com/api/v2.0/redoc#tag/IzmenenieSnyatie-trekov/operation/_____________________________tracks__track_id__patch)
|
418
418
|
```ruby
|
419
419
|
track_id = 1
|
420
420
|
request = {
|
@@ -425,12 +425,12 @@ p response.body
|
|
425
425
|
```
|
426
426
|
|
427
427
|
## <a name="groups"></a> Группы
|
428
|
-
### <a name="groups_get"></a> [Получение Списка Групп](https://rail-
|
428
|
+
### <a name="groups_get"></a> [Получение Списка Групп](https://rail-scan.com/api/v2.0/redoc#tag/Gruppy/operation/_______________________groups_get)
|
429
429
|
```ruby
|
430
430
|
response = RailLocatorApi::Request.groups.retrieve
|
431
431
|
p response.body
|
432
432
|
```
|
433
|
-
### <a name="groups_post"></a> [Создание Группы](https://rail-
|
433
|
+
### <a name="groups_post"></a> [Создание Группы](https://rail-scan.com/api/v2.0/redoc#tag/Gruppy/operation/________________groups_post)
|
434
434
|
```ruby
|
435
435
|
request = {
|
436
436
|
"group_name": "Название новой группы"
|
@@ -438,13 +438,13 @@ request = {
|
|
438
438
|
response = RailLocatorApi::Request.groups.create(body: request)
|
439
439
|
p response.body
|
440
440
|
```
|
441
|
-
### <a name="groups__group_id__delete"></a> [Удаление Группы](https://rail-
|
441
|
+
### <a name="groups__group_id__delete"></a> [Удаление Группы](https://rail-scan.com/api/v2.0/redoc#tag/Gruppy/operation/________________groups__group_id__delete)
|
442
442
|
```ruby
|
443
443
|
group_id = 1
|
444
444
|
response = RailLocatorApi::Request.groups(group_id).delete
|
445
445
|
p response.body
|
446
446
|
```
|
447
|
-
### <a name="groups__group_id__patch"></a> [Изменение Группы](https://rail-
|
447
|
+
### <a name="groups__group_id__patch"></a> [Изменение Группы](https://rail-scan.com/api/v2.0/redoc#tag/Gruppy/operation/_________________groups__group_id__patch)
|
448
448
|
```ruby
|
449
449
|
group_id = 1
|
450
450
|
request = {
|
@@ -453,7 +453,7 @@ request = {
|
|
453
453
|
response = RailLocatorApi::Request.groups(group_id).update(body: request)
|
454
454
|
p response.body
|
455
455
|
```
|
456
|
-
### <a name="groups__group_id__cargo_transport_unit_number_batch_put"></a> [Добавление Вагона В Группу](https://rail-
|
456
|
+
### <a name="groups__group_id__cargo_transport_unit_number_batch_put"></a> [Добавление Вагона В Группу](https://rail-scan.com/api/v2.0/redoc#tag/Gruppy/operation/___________________________groups__group_id__cargo_transport_unit_number_batch_put)
|
457
457
|
```ruby
|
458
458
|
group_id = 1
|
459
459
|
request = {
|
@@ -465,7 +465,7 @@ request = {
|
|
465
465
|
response = RailLocatorApi::Request.groups(group_id).cargo_transport_unit_number.batch.update(body: request)
|
466
466
|
p response.body
|
467
467
|
```
|
468
|
-
### <a name="groups__group_id__cargo_transport_unit_number_batch_delete"></a> [Удаление Вагонов Из Группы](https://rail-
|
468
|
+
### <a name="groups__group_id__cargo_transport_unit_number_batch_delete"></a> [Удаление Вагонов Из Группы](https://rail-scan.com/api/v2.0/redoc#tag/Gruppy/operation/___________________________groups__group_id__cargo_transport_unit_number_batch_delete)
|
469
469
|
```ruby
|
470
470
|
group_id = 1
|
471
471
|
request = {
|
@@ -477,14 +477,14 @@ request = {
|
|
477
477
|
response = RailLocatorApi::Request.groups(group_id).cargo_transport_unit_number.batch.delete(body: request)
|
478
478
|
p response.body
|
479
479
|
```
|
480
|
-
### <a name="groups__group_id__cargo_transport_unit_number__cargo_transport_unit_number__put"></a> [Добавление Вагона В Группу](https://rail-
|
480
|
+
### <a name="groups__group_id__cargo_transport_unit_number__cargo_transport_unit_number__put"></a> [Добавление Вагона В Группу](https://rail-scan.com/api/v2.0/redoc#tag/Gruppy/operation/___________________________groups__group_id__cargo_transport_unit_number__cargo_transport_unit_number__put)
|
481
481
|
```ruby
|
482
482
|
group_id = 1
|
483
483
|
cargo_transport_unit_number = "11111"
|
484
484
|
response = RailLocatorApi::Request.groups(group_id).cargo_transport_unit_number(cargo_transport_unit_number).update
|
485
485
|
p response.body
|
486
486
|
```
|
487
|
-
### <a name="groups__group_id__cargo_transport_unit_number__cargo_transport_unit_number__delete"></a> [Удаление Вагона Из Группы](https://rail-
|
487
|
+
### <a name="groups__group_id__cargo_transport_unit_number__cargo_transport_unit_number__delete"></a> [Удаление Вагона Из Группы](https://rail-scan.com/api/v2.0/redoc#tag/Gruppy/operation/__________________________groups__group_id__cargo_transport_unit_number__cargo_transport_unit_number__delete)
|
488
488
|
```ruby
|
489
489
|
group_id = 1
|
490
490
|
cargo_transport_unit_number = "11111"
|
@@ -493,19 +493,19 @@ p response.body
|
|
493
493
|
```
|
494
494
|
|
495
495
|
## <a name="references"></a> Справочники
|
496
|
-
### <a name="references_station_get"></a> [Получение Координат Станции](https://rail-
|
496
|
+
### <a name="references_station_get"></a> [Получение Координат Станции](https://rail-scan.com/api/v2.0/redoc#tag/Spravochniki/operation/____________________________references_station_get)
|
497
497
|
```ruby
|
498
498
|
response = RailLocatorApi::Request.references.station.retrieve(params: {disloc_id: 1})
|
499
499
|
p response.body
|
500
500
|
```
|
501
501
|
|
502
|
-
### <a name="references_stations_get"></a> [Получение Списка Станций С Краткой Информацией](https://rail-
|
502
|
+
### <a name="references_stations_get"></a> [Получение Списка Станций С Краткой Информацией](https://rail-scan.com/api/v2.0/redoc#tag/Spravochniki/operation/_______________________________________________references_stations_get)
|
503
503
|
```ruby
|
504
504
|
response = RailLocatorApi::Request.references.stations.retrieve(params: {station_code: "111"})
|
505
505
|
p response.body
|
506
506
|
```
|
507
507
|
## <a name="emailings"></a> Рассылки
|
508
|
-
### <a name="emailings_post"></a> [Создание Рассылки](https://rail-
|
508
|
+
### <a name="emailings_post"></a> [Создание Рассылки](https://rail-scan.com/api/v2.0/redoc#tag/Rassylki/operation/__________________emailings_post)
|
509
509
|
|
510
510
|
```ruby
|
511
511
|
request = {
|
@@ -1,5 +1,6 @@
|
|
1
1
|
defaults: &defaults
|
2
|
-
API_ENDPOINT: "https://rail-
|
2
|
+
API_ENDPOINT: "https://rail-scan.com"
|
3
|
+
UNION_ENDPOINT: "http://192.168.88.38:8000"
|
3
4
|
|
4
5
|
API_AUTH_METHOD: "api_key"
|
5
6
|
API_KEY: "***"
|
@@ -14,6 +15,7 @@ defaults: &defaults
|
|
14
15
|
KEYCLOAK_REDIRECT_URI: "http://yousite.ru/callback"
|
15
16
|
production:
|
16
17
|
<<: *defaults
|
18
|
+
UNION_ENDPOINT: "http://192.168.1.88:3500"
|
17
19
|
development:
|
18
20
|
<<: *defaults
|
19
21
|
test:
|
@@ -122,6 +122,10 @@ module RailLocatorApi
|
|
122
122
|
@request_builder.api_endpoint
|
123
123
|
end
|
124
124
|
|
125
|
+
def union_endpoint
|
126
|
+
@request_builder.union_endpoint
|
127
|
+
end
|
128
|
+
|
125
129
|
def timeout
|
126
130
|
@request_builder.timeout
|
127
131
|
end
|
@@ -253,7 +257,7 @@ module RailLocatorApi
|
|
253
257
|
def validate_api_key
|
254
258
|
case self.api_auth_method
|
255
259
|
when :api_key
|
256
|
-
unless self.api_key && self.api_endpoint
|
260
|
+
unless self.api_key# && self.api_endpoint
|
257
261
|
raise RailLocatorApi::RailLocatorApiError, "You must set an api_key prior to making a call #{self.api_key} #{self.api_endpoint}"
|
258
262
|
end
|
259
263
|
when :base64
|
@@ -290,15 +294,15 @@ module RailLocatorApi
|
|
290
294
|
end
|
291
295
|
|
292
296
|
def lk_api_url
|
293
|
-
"https://rail-
|
297
|
+
"https://rail-scan.com/"
|
294
298
|
end
|
295
299
|
|
296
300
|
def app_api_url
|
297
|
-
"https://rail-
|
301
|
+
"https://rail-scan.com/"
|
298
302
|
end
|
299
303
|
|
300
304
|
def union_api_url
|
301
|
-
"
|
305
|
+
"#{RailLocatorApi.union_endpoint}/api/v1.0/"
|
302
306
|
end
|
303
307
|
end
|
304
308
|
end
|
@@ -1,6 +1,7 @@
|
|
1
1
|
module RailLocatorApi
|
2
2
|
class Request
|
3
|
-
attr_accessor :access_token, :refresh_token, :api_user_id, :api_key, :api_user_email, :api_user_password,
|
3
|
+
attr_accessor :access_token, :refresh_token, :api_user_id, :api_key, :api_user_email, :api_user_password,
|
4
|
+
:api_auth_method, :api_endpoint, :union_endpoint,
|
4
5
|
:timeout, :open_timeout, :proxy, :ssl_options, :faraday_adapter, :symbolize_keys, :debug, :debug_options,
|
5
6
|
:without_ratelimit, :is_allow_access_to_coordinates, :logger, :test, :language
|
6
7
|
|
@@ -11,7 +12,7 @@ module RailLocatorApi
|
|
11
12
|
DEFAULT_LANGUAGE = :ru
|
12
13
|
|
13
14
|
def initialize(access_token: nil, refresh_token: nil, api_user_id: nil, api_key: nil, api_user_email: nil, api_user_password: nil,
|
14
|
-
api_endpoint: nil, api_auth_method: nil, timeout: nil, open_timeout: nil, proxy: nil, ssl_options: nil,
|
15
|
+
api_endpoint: nil, union_endpoint: nil, api_auth_method: nil, timeout: nil, open_timeout: nil, proxy: nil, ssl_options: nil,
|
15
16
|
faraday_adapter: nil, symbolize_keys: false, debug: false,
|
16
17
|
debug_options: { headers: true, bodies: false, errors: false, log_level: :info },
|
17
18
|
without_ratelimit: false, is_allow_access_to_coordinates: false,
|
@@ -35,8 +36,12 @@ module RailLocatorApi
|
|
35
36
|
|
36
37
|
@api_user_email = api_user_email || ENV['API_USER_EMAIL'] || ""
|
37
38
|
@api_user_password = api_user_password || ENV['API_USER_PASSWORD'] || ""
|
39
|
+
|
38
40
|
@api_endpoint = api_endpoint || self.class.api_endpoint
|
39
41
|
@api_endpoint = RailLocatorApi::api_endpoint if @api_endpoint.nil?
|
42
|
+
@union_endpoint = union_endpoint || self.class.union_endpoint
|
43
|
+
@union_endpoint = RailLocatorApi::union_endpoint if @union_endpoint.nil?
|
44
|
+
|
40
45
|
@api_auth_method = api_auth_method || RailLocatorApi::api_auth_method || DEFAULT_AUTH_METHOD
|
41
46
|
@timeout = timeout || self.class.timeout || DEFAULT_TIMEOUT
|
42
47
|
@open_timeout = open_timeout || self.class.open_timeout || DEFAULT_OPEN_TIMEOUT
|
@@ -130,7 +135,7 @@ module RailLocatorApi
|
|
130
135
|
|
131
136
|
class << self
|
132
137
|
attr_accessor :access_token, :refresh_token, :api_user_id, :api_key, :api_user_email, :api_user_password, :api_auth_method,
|
133
|
-
:timeout, :open_timeout, :api_endpoint, :proxy, :ssl_options, :faraday_adapter, :symbolize_keys,
|
138
|
+
:timeout, :open_timeout, :api_endpoint, :union_endpoint, :proxy, :ssl_options, :faraday_adapter, :symbolize_keys,
|
134
139
|
:debug, :debug_options, :without_ratelimit, :is_allow_access_to_coordinates, :logger, :test, :language
|
135
140
|
|
136
141
|
def method_missing(sym, *args, &block)
|
@@ -138,7 +143,7 @@ module RailLocatorApi
|
|
138
143
|
api_user_id: self.api_user_id,
|
139
144
|
api_key: self.api_key,
|
140
145
|
api_user_email: self.api_user_email, api_user_password: self.api_user_password,
|
141
|
-
api_auth_method: self.api_auth_method, api_endpoint: self.api_endpoint,
|
146
|
+
api_auth_method: self.api_auth_method, api_endpoint: self.api_endpoint, union_endpoint: self.union_endpoint,
|
142
147
|
timeout: self.timeout, open_timeout: self.open_timeout, faraday_adapter: self.faraday_adapter,
|
143
148
|
symbolize_keys: self.symbolize_keys, debug: self.debug, debug_options: self.debug_options,
|
144
149
|
without_ratelimit: self.without_ratelimit,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rail-locator-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Osetrov
|
@@ -98,7 +98,7 @@ files:
|
|
98
98
|
- lib/rail-locator-api/request.rb
|
99
99
|
- lib/rail-locator-api/response.rb
|
100
100
|
- lib/rail-locator-api/version.rb
|
101
|
-
homepage: https://rail-
|
101
|
+
homepage: https://rail-scan.com/api/v2.0/redoc
|
102
102
|
licenses:
|
103
103
|
- MIT
|
104
104
|
metadata: {}
|