ldbws 1.0.2 → 1.0.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/.editorconfig +1 -1
- data/.ruby-version +1 -0
- data/Gemfile.lock +147 -49
- data/LICENSE +1 -1
- data/README.md +17 -11
- data/doc/LICENSE.html +403 -47
- data/doc/Ldbws/Request/GetDeparturesBoard.html +487 -54
- data/doc/Ldbws/Request/GetDeparturesBoardWithDetails.html +487 -54
- data/doc/Ldbws/Request/GetServiceDetails.html +484 -51
- data/doc/Ldbws/Request/GetStationBoard.html +489 -56
- data/doc/Ldbws/Request/GetStationBoardWithDetails.html +489 -56
- data/doc/Ldbws/Request/ParamValidationError.html +538 -69
- data/doc/Ldbws/Request.html +470 -47
- data/doc/Ldbws/RequestError.html +535 -72
- data/doc/Ldbws/ResponseParsingError.html +475 -49
- data/doc/Ldbws/ResponseTypes/BaseStationBoard.html +565 -56
- data/doc/Ldbws/ResponseTypes/CallingPoint.html +498 -65
- data/doc/Ldbws/ResponseTypes/Coach.html +487 -54
- data/doc/Ldbws/ResponseTypes/DepartureItem.html +485 -52
- data/doc/Ldbws/ResponseTypes/DepartureItemWithDetails.html +485 -52
- data/doc/Ldbws/ResponseTypes/DeparturesBoard.html +484 -51
- data/doc/Ldbws/ResponseTypes/DeparturesBoardWithDetails.html +484 -51
- data/doc/Ldbws/ResponseTypes/Formation.html +485 -52
- data/doc/Ldbws/ResponseTypes/LoadingCategory.html +486 -53
- data/doc/Ldbws/ResponseTypes/Location.html +486 -53
- data/doc/Ldbws/ResponseTypes/ServiceDetails.html +510 -77
- data/doc/Ldbws/ResponseTypes/ServiceItem.html +503 -70
- data/doc/Ldbws/ResponseTypes/ServiceItemWithCallingPoints.html +485 -52
- data/doc/Ldbws/ResponseTypes/StationBoard.html +486 -53
- data/doc/Ldbws/ResponseTypes/StationBoardWithDetails.html +486 -53
- data/doc/Ldbws/ResponseTypes/ToiletAvailability.html +485 -52
- data/doc/Ldbws/ResponseTypes.html +470 -47
- data/doc/Ldbws/Service.html +1083 -245
- data/doc/Ldbws.html +520 -73
- data/doc/README_md.html +14 -20
- data/doc/created.rid +19 -20
- data/doc/css/rdoc.css +1926 -378
- data/doc/index.html +441 -108
- data/doc/js/aliki.js +489 -0
- data/doc/js/bash_highlighter.js +167 -0
- data/doc/js/c_highlighter.js +299 -0
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search_controller.js +129 -0
- data/doc/js/search_data.js +1 -0
- data/doc/js/search_index.js +1 -1
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/search_navigation.js +105 -0
- data/doc/js/search_ranker.js +239 -0
- data/doc/js/searcher.js.gz +0 -0
- data/doc/js/theme-toggle.js +112 -0
- data/doc/table_of_contents.html +2 -3
- data/ldbws.gemspec +7 -6
- data/lib/ldbws/request/base.rb +0 -3
- data/lib/ldbws/request/get_departures_board.rb +5 -1
- data/lib/ldbws/request/get_service_details.rb +5 -1
- data/lib/ldbws/request/get_station_board.rb +14 -1
- data/lib/ldbws/response_types/calling_point.rb +2 -2
- data/lib/ldbws/response_types/station_board.rb +6 -0
- data/lib/ldbws/service.rb +2 -4
- data/lib/ldbws/version.rb +1 -1
- data/spec/helpers/request_helper.rb +27 -0
- data/spec/request/get_departures_board_spec.rb +55 -0
- data/spec/request/get_service_details_spec.rb +16 -0
- data/spec/request/get_station_board_spec.rb +73 -0
- metadata +29 -21
- data/.envrc +0 -1
data/doc/Ldbws/Service.html
CHANGED
|
@@ -1,113 +1,533 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
|
|
3
|
-
<html>
|
|
3
|
+
<html lang="en">
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
7
|
|
|
7
8
|
<title>class Ldbws::Service - RDoc Documentation</title>
|
|
8
9
|
|
|
10
|
+
|
|
11
|
+
<meta
|
|
12
|
+
name="keywords"
|
|
13
|
+
content="ruby,class,Ldbws::Service"
|
|
14
|
+
>
|
|
15
|
+
|
|
16
|
+
<meta
|
|
17
|
+
name="description"
|
|
18
|
+
content="class Ldbws::Service: A wrapper around the National Rail Live Departure Boards Webservice (LDBWS) API. lite."
|
|
19
|
+
>
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
<!-- Open Graph / Facebook -->
|
|
26
|
+
<meta property="og:type" content="website">
|
|
27
|
+
<meta property="og:title" content="class Ldbws::Service - RDoc Documentation">
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
<meta property="og:description" content="A wrapper around the National Rail Live Departure Boards Webservice (LDBWS) API. lite.">
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
<!-- Twitter -->
|
|
38
|
+
<meta name="twitter:card" content="summary">
|
|
39
|
+
<meta name="twitter:title" content="class Ldbws::Service - RDoc Documentation">
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
<meta name="twitter:description" content="A wrapper around the National Rail Live Departure Boards Webservice (LDBWS) API. lite.">
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
9
47
|
<script type="text/javascript">
|
|
10
48
|
var rdoc_rel_prefix = "../";
|
|
11
49
|
var index_rel_prefix = "../";
|
|
12
50
|
</script>
|
|
13
51
|
|
|
14
|
-
<script
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<script
|
|
52
|
+
<script
|
|
53
|
+
src="../js/theme-toggle.js?v=8.1.0"
|
|
54
|
+
></script>
|
|
55
|
+
|
|
56
|
+
<script
|
|
57
|
+
src="../js/search_navigation.js?v=8.1.0"
|
|
58
|
+
defer
|
|
59
|
+
></script>
|
|
60
|
+
|
|
61
|
+
<script
|
|
62
|
+
src="../js/search_data.js?v=8.1.0"
|
|
63
|
+
defer
|
|
64
|
+
></script>
|
|
65
|
+
|
|
66
|
+
<script
|
|
67
|
+
src="../js/search_ranker.js?v=8.1.0"
|
|
68
|
+
defer
|
|
69
|
+
></script>
|
|
70
|
+
|
|
71
|
+
<script
|
|
72
|
+
src="../js/search_controller.js?v=8.1.0"
|
|
73
|
+
defer
|
|
74
|
+
></script>
|
|
75
|
+
|
|
76
|
+
<script
|
|
77
|
+
src="../js/c_highlighter.js?v=8.1.0"
|
|
78
|
+
defer
|
|
79
|
+
></script>
|
|
80
|
+
|
|
81
|
+
<script
|
|
82
|
+
src="../js/bash_highlighter.js?v=8.1.0"
|
|
83
|
+
defer
|
|
84
|
+
></script>
|
|
85
|
+
|
|
86
|
+
<script
|
|
87
|
+
src="../js/aliki.js?v=8.1.0"
|
|
88
|
+
defer
|
|
89
|
+
></script>
|
|
90
|
+
|
|
91
|
+
<link
|
|
92
|
+
href="../css/rdoc.css?v=8.1.0"
|
|
93
|
+
rel="stylesheet"
|
|
94
|
+
>
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
<body role="document" class="class has-toc">
|
|
100
|
+
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
|
101
|
+
<!-- Chevron (right arrow) - used for expand/collapse -->
|
|
102
|
+
<symbol
|
|
103
|
+
id="icon-chevron"
|
|
104
|
+
viewBox="0 0 24 24"
|
|
105
|
+
fill="none"
|
|
106
|
+
stroke="currentColor"
|
|
107
|
+
stroke-width="2"
|
|
108
|
+
stroke-linecap="round"
|
|
109
|
+
stroke-linejoin="round"
|
|
110
|
+
>
|
|
111
|
+
<polyline points="9 18 15 12 9 6"></polyline>
|
|
112
|
+
</symbol>
|
|
113
|
+
|
|
114
|
+
<!-- File/Document - Pages section -->
|
|
115
|
+
<symbol
|
|
116
|
+
id="icon-file"
|
|
117
|
+
viewBox="0 0 24 24"
|
|
118
|
+
fill="none"
|
|
119
|
+
stroke="currentColor"
|
|
120
|
+
stroke-width="2"
|
|
121
|
+
stroke-linecap="round"
|
|
122
|
+
stroke-linejoin="round"
|
|
123
|
+
>
|
|
124
|
+
<path
|
|
125
|
+
d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"
|
|
126
|
+
></path>
|
|
127
|
+
|
|
128
|
+
<polyline points="14 2 14 8 20 8"></polyline>
|
|
129
|
+
</symbol>
|
|
130
|
+
|
|
131
|
+
<!-- Layers/Stack - Classes and Modules section -->
|
|
132
|
+
<symbol
|
|
133
|
+
id="icon-layers"
|
|
134
|
+
viewBox="0 0 24 24"
|
|
135
|
+
fill="none"
|
|
136
|
+
stroke="currentColor"
|
|
137
|
+
stroke-width="2"
|
|
138
|
+
stroke-linecap="round"
|
|
139
|
+
stroke-linejoin="round"
|
|
140
|
+
>
|
|
141
|
+
<polygon points="12 2 2 7 12 12 22 7 12 2"></polygon>
|
|
142
|
+
<polyline points="2 17 12 22 22 17"></polyline>
|
|
143
|
+
<polyline points="2 12 12 17 22 12"></polyline>
|
|
144
|
+
</symbol>
|
|
145
|
+
|
|
146
|
+
<!-- Curly braces with C - Class Methods section -->
|
|
147
|
+
<symbol
|
|
148
|
+
id="icon-class-methods"
|
|
149
|
+
viewBox="0 0 24 24"
|
|
150
|
+
fill="none"
|
|
151
|
+
stroke="currentColor"
|
|
152
|
+
stroke-width="2"
|
|
153
|
+
stroke-linecap="round"
|
|
154
|
+
stroke-linejoin="round"
|
|
155
|
+
>
|
|
156
|
+
<path d="M6 3C3.5 3 2 4.5 2 7v3c0 1.5-1 2-1 2s1 .5 1 2v5c0 2.5 1.5 4 4 4"></path>
|
|
157
|
+
<path d="M18 3c2.5 0 4 1.5 4 4v3c0 1.5 1 2 1 2s-1 .5-1 2v5c0 2.5-1.5 4-4 4"></path>
|
|
158
|
+
|
|
159
|
+
<text
|
|
160
|
+
x="12"
|
|
161
|
+
y="17"
|
|
162
|
+
text-anchor="middle"
|
|
163
|
+
font-size="13"
|
|
164
|
+
font-weight="bold"
|
|
165
|
+
fill="currentColor"
|
|
166
|
+
stroke="none"
|
|
167
|
+
>
|
|
168
|
+
C
|
|
169
|
+
</text>
|
|
170
|
+
</symbol>
|
|
171
|
+
|
|
172
|
+
<!-- Curly braces with I - Instance Methods section -->
|
|
173
|
+
<symbol
|
|
174
|
+
id="icon-instance-methods"
|
|
175
|
+
viewBox="0 0 24 24"
|
|
176
|
+
fill="none"
|
|
177
|
+
stroke="currentColor"
|
|
178
|
+
stroke-width="2"
|
|
179
|
+
stroke-linecap="round"
|
|
180
|
+
stroke-linejoin="round"
|
|
181
|
+
>
|
|
182
|
+
<path d="M6 3C3.5 3 2 4.5 2 7v3c0 1.5-1 2-1 2s1 .5 1 2v5c0 2.5 1.5 4 4 4"></path>
|
|
183
|
+
<path d="M18 3c2.5 0 4 1.5 4 4v3c0 1.5 1 2 1 2s-1 .5-1 2v5c0 2.5-1.5 4-4 4"></path>
|
|
184
|
+
|
|
185
|
+
<text
|
|
186
|
+
x="12"
|
|
187
|
+
y="17"
|
|
188
|
+
text-anchor="middle"
|
|
189
|
+
font-size="13"
|
|
190
|
+
font-weight="bold"
|
|
191
|
+
fill="currentColor"
|
|
192
|
+
stroke="none"
|
|
193
|
+
>
|
|
194
|
+
I
|
|
195
|
+
</text>
|
|
196
|
+
</symbol>
|
|
197
|
+
|
|
198
|
+
<!-- Double chevrons up - Ancestors section -->
|
|
199
|
+
<symbol
|
|
200
|
+
id="icon-ancestors"
|
|
201
|
+
viewBox="0 0 24 24"
|
|
202
|
+
fill="none"
|
|
203
|
+
stroke="currentColor"
|
|
204
|
+
stroke-width="2"
|
|
205
|
+
stroke-linecap="round"
|
|
206
|
+
stroke-linejoin="round"
|
|
207
|
+
>
|
|
208
|
+
<polyline points="17 11 12 6 7 11"></polyline>
|
|
209
|
+
<polyline points="17 18 12 13 7 18"></polyline>
|
|
210
|
+
</symbol>
|
|
211
|
+
|
|
212
|
+
<!-- User with plus - Included Modules section -->
|
|
213
|
+
<symbol
|
|
214
|
+
id="icon-includes"
|
|
215
|
+
viewBox="0 0 24 24"
|
|
216
|
+
fill="none"
|
|
217
|
+
stroke="currentColor"
|
|
218
|
+
stroke-width="2"
|
|
219
|
+
stroke-linecap="round"
|
|
220
|
+
stroke-linejoin="round"
|
|
221
|
+
>
|
|
222
|
+
<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
|
|
223
|
+
<circle cx="8.5" cy="7" r="4"></circle>
|
|
224
|
+
|
|
225
|
+
<line
|
|
226
|
+
x1="20"
|
|
227
|
+
y1="8"
|
|
228
|
+
x2="20"
|
|
229
|
+
y2="14"
|
|
230
|
+
></line>
|
|
231
|
+
|
|
232
|
+
<line
|
|
233
|
+
x1="23"
|
|
234
|
+
y1="11"
|
|
235
|
+
x2="17"
|
|
236
|
+
y2="11"
|
|
237
|
+
></line>
|
|
238
|
+
</symbol>
|
|
239
|
+
|
|
240
|
+
<!-- User with check - Extended Modules section -->
|
|
241
|
+
<symbol
|
|
242
|
+
id="icon-extends"
|
|
243
|
+
viewBox="0 0 24 24"
|
|
244
|
+
fill="none"
|
|
245
|
+
stroke="currentColor"
|
|
246
|
+
stroke-width="2"
|
|
247
|
+
stroke-linecap="round"
|
|
248
|
+
stroke-linejoin="round"
|
|
249
|
+
>
|
|
250
|
+
<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
|
|
251
|
+
<circle cx="8.5" cy="7" r="4"></circle>
|
|
252
|
+
<polyline points="17 11 19 13 23 9"></polyline>
|
|
253
|
+
</symbol>
|
|
254
|
+
|
|
255
|
+
<!-- List - Sections section -->
|
|
256
|
+
<symbol
|
|
257
|
+
id="icon-list"
|
|
258
|
+
viewBox="0 0 24 24"
|
|
259
|
+
fill="none"
|
|
260
|
+
stroke="currentColor"
|
|
261
|
+
stroke-width="2"
|
|
262
|
+
stroke-linecap="round"
|
|
263
|
+
stroke-linejoin="round"
|
|
264
|
+
>
|
|
265
|
+
<line
|
|
266
|
+
x1="8"
|
|
267
|
+
y1="6"
|
|
268
|
+
x2="21"
|
|
269
|
+
y2="6"
|
|
270
|
+
></line>
|
|
271
|
+
|
|
272
|
+
<line
|
|
273
|
+
x1="8"
|
|
274
|
+
y1="12"
|
|
275
|
+
x2="21"
|
|
276
|
+
y2="12"
|
|
277
|
+
></line>
|
|
278
|
+
|
|
279
|
+
<line
|
|
280
|
+
x1="8"
|
|
281
|
+
y1="18"
|
|
282
|
+
x2="21"
|
|
283
|
+
y2="18"
|
|
284
|
+
></line>
|
|
285
|
+
|
|
286
|
+
<line
|
|
287
|
+
x1="3"
|
|
288
|
+
y1="6"
|
|
289
|
+
x2="3.01"
|
|
290
|
+
y2="6"
|
|
291
|
+
></line>
|
|
292
|
+
|
|
293
|
+
<line
|
|
294
|
+
x1="3"
|
|
295
|
+
y1="12"
|
|
296
|
+
x2="3.01"
|
|
297
|
+
y2="12"
|
|
298
|
+
></line>
|
|
299
|
+
|
|
300
|
+
<line
|
|
301
|
+
x1="3"
|
|
302
|
+
y1="18"
|
|
303
|
+
x2="3.01"
|
|
304
|
+
y2="18"
|
|
305
|
+
></line>
|
|
306
|
+
</symbol>
|
|
307
|
+
</svg>
|
|
308
|
+
|
|
309
|
+
<header class="top-navbar">
|
|
310
|
+
<a href="../index.html" class="navbar-brand">
|
|
311
|
+
RDoc Documentation
|
|
312
|
+
</a>
|
|
313
|
+
|
|
314
|
+
<div class="navbar-search" data-search-container>
|
|
315
|
+
<button id="search-toggle" class="navbar-search-mobile" aria-label="Open search"
|
|
316
|
+
aria-controls="search-surface" aria-expanded="false" type="button">
|
|
317
|
+
<span aria-hidden="true">🔍</span>
|
|
318
|
+
</button>
|
|
319
|
+
|
|
320
|
+
<div class="search-backdrop" data-search-close></div>
|
|
321
|
+
<div id="search-surface" class="search-surface">
|
|
322
|
+
<form class="search-form" role="search" action="#" method="get" accept-charset="utf-8">
|
|
323
|
+
<span class="search-icon" aria-hidden="true">🔍</span>
|
|
324
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
|
325
|
+
aria-autocomplete="list" aria-controls="search-results"
|
|
326
|
+
type="text" name="search" placeholder="Search (/) for a class, method..."
|
|
327
|
+
spellcheck="false" autocomplete="off"
|
|
328
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
|
329
|
+
<button type="button" class="search-close" aria-label="Close search" data-search-close>
|
|
330
|
+
<span aria-hidden="true">esc</span>
|
|
331
|
+
</button>
|
|
332
|
+
</form>
|
|
333
|
+
|
|
334
|
+
<div class="search-body">
|
|
335
|
+
<ul id="search-results" aria-label="Search Results"
|
|
336
|
+
aria-busy="false" aria-expanded="false"
|
|
337
|
+
aria-atomic="false" class="initially-hidden search-results"></ul>
|
|
338
|
+
<div class="search-empty">
|
|
339
|
+
<p>No recent searches</p>
|
|
340
|
+
</div>
|
|
341
|
+
</div>
|
|
342
|
+
</div>
|
|
343
|
+
</div>
|
|
19
344
|
|
|
20
|
-
|
|
21
|
-
<
|
|
345
|
+
<!-- Theme toggle button -->
|
|
346
|
+
<button id="theme-toggle" class="theme-toggle" aria-label="Switch to dark mode" type="button">
|
|
347
|
+
<span class="theme-toggle-icon" aria-hidden="true">🌙</span>
|
|
348
|
+
</button>
|
|
349
|
+
</header>
|
|
350
|
+
|
|
351
|
+
<div id="sidebar-navigation-toggle" role="button" tabindex="0" aria-label="Toggle sidebar" aria-expanded="false" aria-controls="sidebar-navigation">
|
|
352
|
+
<span aria-hidden="true">☰</span>
|
|
353
|
+
</div>
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
<nav id="sidebar-navigation" role="navigation" hidden>
|
|
357
|
+
|
|
22
358
|
|
|
23
359
|
|
|
24
|
-
<body id="top" role="document" class="class">
|
|
25
|
-
<nav role="navigation">
|
|
26
|
-
<div id="project-navigation">
|
|
27
|
-
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
|
28
|
-
<h2>
|
|
29
|
-
<a href="../index.html" rel="home">Home</a>
|
|
30
|
-
</h2>
|
|
31
360
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<
|
|
35
|
-
|
|
361
|
+
|
|
362
|
+
<div id="fileindex-section" class="nav-section">
|
|
363
|
+
<details class="nav-section-collapsible" >
|
|
364
|
+
<summary class="nav-section-header">
|
|
365
|
+
<span class="nav-section-icon">
|
|
366
|
+
<svg>
|
|
367
|
+
<use href="#icon-file"></use>
|
|
368
|
+
</svg>
|
|
369
|
+
</span>
|
|
370
|
+
|
|
371
|
+
<span class="nav-section-title">Pages</span>
|
|
372
|
+
|
|
373
|
+
<span class="nav-section-chevron">
|
|
374
|
+
<svg>
|
|
375
|
+
<use href="#icon-chevron"></use>
|
|
376
|
+
</svg>
|
|
377
|
+
</span>
|
|
378
|
+
</summary>
|
|
379
|
+
|
|
380
|
+
<ul class="nav-list">
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
<li>
|
|
388
|
+
<a href="../LICENSE.html">
|
|
389
|
+
LICENSE
|
|
390
|
+
</a>
|
|
391
|
+
</li>
|
|
392
|
+
|
|
393
|
+
</ul>
|
|
394
|
+
</details>
|
|
36
395
|
</div>
|
|
37
|
-
</div>
|
|
38
396
|
|
|
39
|
-
<div id="search-section" role="search" class="project-section initially-hidden">
|
|
40
|
-
<form action="#" method="get" accept-charset="utf-8">
|
|
41
|
-
<div id="search-field-wrapper">
|
|
42
|
-
<input id="search-field" role="combobox" aria-label="Search"
|
|
43
|
-
aria-autocomplete="list" aria-controls="search-results"
|
|
44
|
-
type="text" name="search" placeholder="Search" spellcheck="false"
|
|
45
|
-
title="Type to search, Up and Down to navigate, Enter to load">
|
|
46
|
-
</div>
|
|
47
397
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
<div id="parent-class-section" class="nav-section">
|
|
402
|
+
<details class="nav-section-collapsible" open>
|
|
403
|
+
<summary class="nav-section-header">
|
|
404
|
+
<span class="nav-section-icon">
|
|
405
|
+
<svg><use href="#icon-ancestors"></use></svg>
|
|
406
|
+
</span>
|
|
407
|
+
<span class="nav-section-title">Ancestors</span>
|
|
408
|
+
<span class="nav-section-chevron">
|
|
409
|
+
<svg><use href="#icon-chevron"></use></svg>
|
|
410
|
+
</span>
|
|
411
|
+
</summary>
|
|
412
|
+
<ul><li>Object</li></ul>
|
|
413
|
+
</details>
|
|
52
414
|
</div>
|
|
53
415
|
|
|
54
|
-
</div>
|
|
55
416
|
|
|
56
417
|
|
|
57
|
-
<div class="nav-section">
|
|
58
|
-
<h3>Table of Contents</h3>
|
|
59
418
|
|
|
419
|
+
|
|
60
420
|
|
|
421
|
+
|
|
422
|
+
<div class="nav-section">
|
|
423
|
+
<details class="nav-section-collapsible" open>
|
|
424
|
+
<summary class="nav-section-header">
|
|
425
|
+
<span class="nav-section-icon">
|
|
426
|
+
<svg><use href="#icon-class-methods"></use></svg>
|
|
427
|
+
</span>
|
|
428
|
+
<span class="nav-section-title">Class Methods</span>
|
|
429
|
+
<span class="nav-section-chevron">
|
|
430
|
+
<svg><use href="#icon-chevron"></use></svg>
|
|
431
|
+
</span>
|
|
432
|
+
</summary>
|
|
433
|
+
<ul class="nav-list" role="directory">
|
|
434
|
+
|
|
435
|
+
<li ><a href="#method-c-new">new</a></li>
|
|
436
|
+
|
|
437
|
+
</ul>
|
|
438
|
+
</details>
|
|
439
|
+
</div>
|
|
61
440
|
|
|
62
|
-
<ul class="link-list" role="directory">
|
|
63
|
-
<li> <a href="#class-Ldbws::Service-label-Usage+example">Usage example</a>
|
|
64
|
-
<li> <a href="#class-Ldbws::Service-label-Side+note">Side note</a>
|
|
65
441
|
|
|
66
|
-
</ul>
|
|
67
|
-
</div>
|
|
68
442
|
|
|
443
|
+
<div class="nav-section">
|
|
444
|
+
<details class="nav-section-collapsible" open>
|
|
445
|
+
<summary class="nav-section-header">
|
|
446
|
+
<span class="nav-section-icon">
|
|
447
|
+
<svg><use href="#icon-instance-methods"></use></svg>
|
|
448
|
+
</span>
|
|
449
|
+
<span class="nav-section-title">Instance Methods</span>
|
|
450
|
+
<span class="nav-section-chevron">
|
|
451
|
+
<svg><use href="#icon-chevron"></use></svg>
|
|
452
|
+
</span>
|
|
453
|
+
</summary>
|
|
454
|
+
<ul class="nav-list" role="directory">
|
|
69
455
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
<div id="parent-class-section" class="nav-section">
|
|
74
|
-
<h3>Parent</h3>
|
|
456
|
+
<li ><a href="#method-i-get_arr_board_with_details">get_arr_board_with_details</a></li>
|
|
75
457
|
|
|
76
|
-
|
|
77
|
-
</div>
|
|
458
|
+
<li ><a href="#method-i-get_arr_dep_board_with_details">get_arr_dep_board_with_details</a></li>
|
|
78
459
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
<
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
<li ><a href="#method-i-get_dep_board_with_details">#get_dep_board_with_details</a>
|
|
95
|
-
<li ><a href="#method-i-get_departure_board">#get_departure_board</a>
|
|
96
|
-
<li ><a href="#method-i-get_departure_board_with_details">#get_departure_board_with_details</a>
|
|
97
|
-
<li ><a href="#method-i-get_fastest_departures">#get_fastest_departures</a>
|
|
98
|
-
<li ><a href="#method-i-get_fastest_departures_with_details">#get_fastest_departures_with_details</a>
|
|
99
|
-
<li ><a href="#method-i-get_next_departures">#get_next_departures</a>
|
|
100
|
-
<li ><a href="#method-i-get_next_departures_with_details">#get_next_departures_with_details</a>
|
|
101
|
-
<li ><a href="#method-i-get_service_details">#get_service_details</a>
|
|
102
|
-
</ul>
|
|
103
|
-
</div>
|
|
460
|
+
<li ><a href="#method-i-get_arrival_board">get_arrival_board</a></li>
|
|
461
|
+
|
|
462
|
+
<li ><a href="#method-i-get_arrival_board_with_details">get_arrival_board_with_details</a></li>
|
|
463
|
+
|
|
464
|
+
<li ><a href="#method-i-get_arrival_departure_board">get_arrival_departure_board</a></li>
|
|
465
|
+
|
|
466
|
+
<li ><a href="#method-i-get_arrival_departure_board_with_details">get_arrival_departure_board_with_details</a></li>
|
|
467
|
+
|
|
468
|
+
<li ><a href="#method-i-get_dep_board_with_details">get_dep_board_with_details</a></li>
|
|
469
|
+
|
|
470
|
+
<li ><a href="#method-i-get_departure_board">get_departure_board</a></li>
|
|
471
|
+
|
|
472
|
+
<li ><a href="#method-i-get_departure_board_with_details">get_departure_board_with_details</a></li>
|
|
473
|
+
|
|
474
|
+
<li ><a href="#method-i-get_fastest_departures">get_fastest_departures</a></li>
|
|
104
475
|
|
|
476
|
+
<li ><a href="#method-i-get_fastest_departures_with_details">get_fastest_departures_with_details</a></li>
|
|
477
|
+
|
|
478
|
+
<li ><a href="#method-i-get_next_departures">get_next_departures</a></li>
|
|
479
|
+
|
|
480
|
+
<li ><a href="#method-i-get_next_departures_with_details">get_next_departures_with_details</a></li>
|
|
481
|
+
|
|
482
|
+
<li ><a href="#method-i-get_service_details">get_service_details</a></li>
|
|
483
|
+
|
|
484
|
+
</ul>
|
|
485
|
+
</details>
|
|
105
486
|
</div>
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
<div id="classindex-section" class="nav-section">
|
|
490
|
+
<details class="nav-section-collapsible" open>
|
|
491
|
+
<summary class="nav-section-header">
|
|
492
|
+
<span class="nav-section-icon">
|
|
493
|
+
<svg><use href="#icon-layers"></use></svg>
|
|
494
|
+
</span>
|
|
495
|
+
<span class="nav-section-title">Classes and Modules</span>
|
|
496
|
+
<span class="nav-section-chevron">
|
|
497
|
+
<svg><use href="#icon-chevron"></use></svg>
|
|
498
|
+
</span>
|
|
499
|
+
</summary>
|
|
500
|
+
|
|
501
|
+
<ul class="link-list nav-list"><li><details open><summary><code><a href="../Ldbws.html">Ldbws</a></code></summary><ul class="link-list nav-list"><li><details><summary><code><a href="../Ldbws/Request.html">Request</a></code></summary><ul class="link-list nav-list"><li><code><a href="../Ldbws/Request/GetDeparturesBoard.html">GetDeparturesBoard</a></code></li><li><code><a href="../Ldbws/Request/GetDeparturesBoardWithDetails.html">GetDeparturesBoardWithDetails</a></code></li><li><code><a href="../Ldbws/Request/GetServiceDetails.html">GetServiceDetails</a></code></li><li><code><a href="../Ldbws/Request/GetStationBoard.html">GetStationBoard</a></code></li><li><code><a href="../Ldbws/Request/GetStationBoardWithDetails.html">GetStationBoardWithDetails</a></code></li><li><code><a href="../Ldbws/Request/ParamValidationError.html">ParamValidationError</a></code></li></ul></details></li><li><code><a href="../Ldbws/RequestError.html">RequestError</a></code></li><li><code><a href="../Ldbws/ResponseParsingError.html">ResponseParsingError</a></code></li><li><details><summary><code><a href="../Ldbws/ResponseTypes.html">ResponseTypes</a></code></summary><ul class="link-list nav-list"><li><code><a href="../Ldbws/ResponseTypes/BaseStationBoard.html">BaseStationBoard</a></code></li><li><code><a href="../Ldbws/ResponseTypes/CallingPoint.html">CallingPoint</a></code></li><li><code><a href="../Ldbws/ResponseTypes/Coach.html">Coach</a></code></li><li><code><a href="../Ldbws/ResponseTypes/DepartureItem.html">DepartureItem</a></code></li><li><code><a href="../Ldbws/ResponseTypes/DepartureItemWithDetails.html">DepartureItemWithDetails</a></code></li><li><code><a href="../Ldbws/ResponseTypes/DeparturesBoard.html">DeparturesBoard</a></code></li><li><code><a href="../Ldbws/ResponseTypes/DeparturesBoardWithDetails.html">DeparturesBoardWithDetails</a></code></li><li><code><a href="../Ldbws/ResponseTypes/Formation.html">Formation</a></code></li><li><code><a href="../Ldbws/ResponseTypes/LoadingCategory.html">LoadingCategory</a></code></li><li><code><a href="../Ldbws/ResponseTypes/Location.html">Location</a></code></li><li><code><a href="../Ldbws/ResponseTypes/ServiceDetails.html">ServiceDetails</a></code></li><li><code><a href="../Ldbws/ResponseTypes/ServiceItem.html">ServiceItem</a></code></li><li><code><a href="../Ldbws/ResponseTypes/ServiceItemWithCallingPoints.html">ServiceItemWithCallingPoints</a></code></li><li><code><a href="../Ldbws/ResponseTypes/StationBoard.html">StationBoard</a></code></li><li><code><a href="../Ldbws/ResponseTypes/StationBoardWithDetails.html">StationBoardWithDetails</a></code></li><li><code><a href="../Ldbws/ResponseTypes/ToiletAvailability.html">ToiletAvailability</a></code></li></ul></details></li><li><code><a href="../Ldbws/Service.html">Service</a></code></li></ul></details></li></ul>
|
|
502
|
+
</details>
|
|
503
|
+
</div>
|
|
504
|
+
|
|
106
505
|
</nav>
|
|
107
506
|
|
|
108
|
-
<main role="main" aria-labelledby="class-
|
|
109
|
-
|
|
110
|
-
|
|
507
|
+
<main role="main" aria-labelledby="class-ldbws-service">
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
<ol role="navigation" aria-label="Breadcrumb navigation" class="breadcrumb">
|
|
511
|
+
|
|
512
|
+
<li>
|
|
513
|
+
|
|
514
|
+
<a href="../Ldbws.html">Ldbws</a><span class="separator">::</span>
|
|
515
|
+
|
|
516
|
+
</li>
|
|
517
|
+
|
|
518
|
+
<li>
|
|
519
|
+
|
|
520
|
+
<span>Service</span>
|
|
521
|
+
|
|
522
|
+
</li>
|
|
523
|
+
|
|
524
|
+
</ol>
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
<span id="class-Ldbws::Service" class="legacy-anchor"></span>
|
|
528
|
+
<h1 id="class-ldbws-service" class="anchor-link class page-title">
|
|
529
|
+
<span class="page-title-kind">class</span>
|
|
530
|
+
<span class="page-title-name">Ldbws::Service</span>
|
|
111
531
|
</h1>
|
|
112
532
|
|
|
113
533
|
<section class="description">
|
|
@@ -116,452 +536,870 @@
|
|
|
116
536
|
|
|
117
537
|
<p>API methods are pretty much as-specified in <a href="https://lite.realtime.nationalrail.co.uk/openldbws/">the documentation</a>, although methods on this class are specified using snake_case rather than the CamelCase used in the web service.</p>
|
|
118
538
|
|
|
119
|
-
<
|
|
539
|
+
<span id="class-Ldbws::Service-label-Usage+example" class="legacy-anchor"></span>
|
|
540
|
+
<h3 id="class-ldbws-service-usage-example"><a href="#class-ldbws-service-usage-example">Usage example</a></h3>
|
|
120
541
|
|
|
121
542
|
<p>TL;DR:</p>
|
|
122
543
|
|
|
123
|
-
<pre class="ruby"><span class="ruby-identifier">service</span> = <span class="ruby-identifier">new</span> <span class="ruby-constant">Ldbws</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>( <span class="ruby-string">"
|
|
124
|
-
<span class="ruby-identifier">departures</span> = <span class="ruby-identifier">service</span>.<span class="ruby-identifier">get_departure_board</span>( <span class="ruby-value">crs
|
|
544
|
+
<pre class="ruby"><span class="ruby-identifier">service</span> = <span class="ruby-identifier">new</span> <span class="ruby-constant">Ldbws</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>( <span class="ruby-string">"</span><span class="ruby-string">YOUR-API-TOKEN</span><span class="ruby-string">"</span> )
|
|
545
|
+
<span class="ruby-identifier">departures</span> = <span class="ruby-identifier">service</span>.<span class="ruby-identifier">get_departure_board</span>( <span class="ruby-value">crs</span><span class="ruby-value">:</span> <span class="ruby-string">"</span><span class="ruby-string">CDF</span><span class="ruby-string">"</span> )
|
|
125
546
|
</pre>
|
|
126
547
|
|
|
127
548
|
<p>Will furnish you with a list of all departures from Cardiff Central. Other methods work pretty much as you’d expect if you’ve any familiarity with the service. Individual requests use <a href="Request.html"><code>Request</code></a> objects to validate input parameters, and this is noted below. See the corresponding request object for each method for further information as to the parameters.</p>
|
|
128
549
|
|
|
129
|
-
<
|
|
550
|
+
<span id="class-Ldbws::Service-label-Side+note" class="legacy-anchor"></span>
|
|
551
|
+
<h3 id="class-ldbws-service-side-note"><a href="#class-ldbws-service-side-note">Side note</a></h3>
|
|
130
552
|
|
|
131
553
|
<p>The official documentation for this web service is… lacking. While an attempt has been made to elucidate on both the request parameters and response properties, it shouldn’t be taken as any kind of source of truth. Caveat emptor.</p>
|
|
132
554
|
|
|
133
555
|
</section>
|
|
134
556
|
|
|
135
|
-
|
|
557
|
+
|
|
558
|
+
<span id="5Buntitled-5D" class="legacy-anchor"></span>
|
|
559
|
+
<section class="documentation-section anchor-link">
|
|
560
|
+
|
|
561
|
+
|
|
136
562
|
|
|
137
563
|
|
|
138
564
|
|
|
139
565
|
|
|
140
566
|
|
|
141
|
-
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
<section id="public-class-untitled-method-details" class="method-section anchor-link">
|
|
142
573
|
<header>
|
|
143
|
-
<h3>Public Class Methods</h3>
|
|
574
|
+
<h3 id="public-class-untitled-methods"><a href="#public-class-untitled-methods">Public Class Methods</a></h3>
|
|
144
575
|
</header>
|
|
145
576
|
|
|
146
|
-
|
|
577
|
+
|
|
578
|
+
<div id="method-c-new" class="method-detail anchor-link ">
|
|
147
579
|
<div class="method-header">
|
|
148
|
-
<div class="method-heading">
|
|
149
|
-
|
|
150
|
-
class="method-
|
|
151
|
-
|
|
580
|
+
<div class="method-heading-group">
|
|
581
|
+
|
|
582
|
+
<div class="method-heading">
|
|
583
|
+
<a href="#method-c-new" title="Link to this method">
|
|
584
|
+
<span class="method-name">new</span>
|
|
585
|
+
<span class="method-args">(token)</span>
|
|
586
|
+
</a>
|
|
587
|
+
</div>
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
|
|
152
591
|
</div>
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
<div class="method-controls">
|
|
595
|
+
<details class="method-source-toggle">
|
|
596
|
+
<summary><span class="method-source-icon" aria-hidden="true">{}</span> Source</summary>
|
|
597
|
+
</details>
|
|
598
|
+
</div>
|
|
599
|
+
|
|
153
600
|
</div>
|
|
154
601
|
|
|
602
|
+
|
|
603
|
+
<div class="method-source-code" id="new-source">
|
|
604
|
+
<pre class="ruby"><span class="ruby-comment"># File lib/ldbws/service.rb, line 39</span>
|
|
605
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">token</span>)
|
|
606
|
+
<span class="ruby-ivar">@token</span> = <span class="ruby-identifier">token</span>
|
|
607
|
+
<span class="ruby-keyword">end</span></pre>
|
|
608
|
+
</div>
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
|
|
155
612
|
<div class="method-description">
|
|
613
|
+
|
|
614
|
+
|
|
156
615
|
<p>Creates a service object.</p>
|
|
157
616
|
|
|
158
|
-
<
|
|
159
|
-
<
|
|
617
|
+
<span id="method-c-new-label-Parameters" class="legacy-anchor"></span>
|
|
618
|
+
<h3 id="method-c-new-parameters"><a href="#method-c-new-parameters">Parameters</a></h3>
|
|
619
|
+
<dl class="rdoc-list note-list"><dt>token</dt>
|
|
160
620
|
<dd>
|
|
161
621
|
<p>the API token used to connect to the service</p>
|
|
162
622
|
</dd></dl>
|
|
163
623
|
|
|
164
|
-
|
|
165
|
-
<pre><span class="ruby-comment"># File lib/ldbws/service.rb, line 39</span>
|
|
166
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">token</span>)
|
|
167
|
-
<span class="ruby-ivar">@token</span> = <span class="ruby-identifier">token</span>
|
|
168
|
-
<span class="ruby-keyword">end</span></pre>
|
|
169
|
-
</div>
|
|
624
|
+
|
|
170
625
|
</div>
|
|
171
626
|
|
|
172
627
|
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
|
|
173
631
|
</div>
|
|
174
632
|
|
|
633
|
+
|
|
175
634
|
</section>
|
|
176
635
|
|
|
177
|
-
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
<section id="public-instance-untitled-method-details" class="method-section anchor-link">
|
|
178
643
|
<header>
|
|
179
|
-
<h3>Public Instance Methods</h3>
|
|
644
|
+
<h3 id="public-instance-untitled-methods"><a href="#public-instance-untitled-methods">Public Instance Methods</a></h3>
|
|
180
645
|
</header>
|
|
181
646
|
|
|
182
|
-
|
|
647
|
+
|
|
648
|
+
<div id="method-i-get_arr_board_with_details" class="method-detail anchor-link ">
|
|
183
649
|
<div class="method-header">
|
|
184
|
-
<div class="method-heading">
|
|
185
|
-
|
|
186
|
-
class="method-
|
|
187
|
-
|
|
650
|
+
<div class="method-heading-group">
|
|
651
|
+
|
|
652
|
+
<div class="method-heading">
|
|
653
|
+
<a href="#method-i-get_arr_board_with_details" title="Link to this method">
|
|
654
|
+
<span class="method-name">get_arr_board_with_details</span>
|
|
655
|
+
<span class="method-args">(params)</span>
|
|
656
|
+
</a>
|
|
657
|
+
</div>
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
|
|
188
661
|
</div>
|
|
189
|
-
</div>
|
|
190
662
|
|
|
191
|
-
<div class="method-description">
|
|
192
|
-
<p>Retrieves a detailed station arrival board.</p>
|
|
193
663
|
|
|
194
|
-
<
|
|
664
|
+
<div class="method-controls">
|
|
665
|
+
<details class="method-source-toggle">
|
|
666
|
+
<summary><span class="method-source-icon" aria-hidden="true">{}</span> Source</summary>
|
|
667
|
+
</details>
|
|
668
|
+
</div>
|
|
669
|
+
|
|
670
|
+
</div>
|
|
671
|
+
|
|
195
672
|
|
|
196
673
|
<div class="method-source-code" id="get_arr_board_with_details-source">
|
|
197
|
-
<pre><span class="ruby-comment"># File lib/ldbws/service.rb, line 91</span>
|
|
198
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier
|
|
674
|
+
<pre class="ruby"><span class="ruby-comment"># File lib/ldbws/service.rb, line 91</span>
|
|
675
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_arr_board_with_details</span>(<span class="ruby-identifier">params</span>)
|
|
199
676
|
<span class="ruby-identifier">request</span>(
|
|
200
|
-
<span class="ruby-string">"
|
|
677
|
+
<span class="ruby-string">"</span><span class="ruby-string">http://thalesgroup.com/RTTI/2015-05-14/ldb/GetArrBoardWithDetails</span><span class="ruby-string">"</span>,
|
|
201
678
|
<span class="ruby-constant">Request</span><span class="ruby-operator">::</span><span class="ruby-constant">GetStationBoardWithDetails</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">params</span>)
|
|
202
679
|
)
|
|
203
680
|
<span class="ruby-keyword">end</span></pre>
|
|
204
681
|
</div>
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
<div class="method-description">
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
<p>Retrieves a detailed station arrival board.</p>
|
|
689
|
+
|
|
690
|
+
<p>Parameters are validated using <a href="Request/GetStationBoardWithDetails.html">GetStationBoardWithDetails</a>, returns a <a href="ResponseTypes/StationBoardWithDetails.html">StationBoardWithDetails</a> object.</p>
|
|
691
|
+
|
|
692
|
+
|
|
205
693
|
</div>
|
|
206
694
|
|
|
695
|
+
|
|
696
|
+
|
|
207
697
|
<div class="aliases">
|
|
208
698
|
Also aliased as: <a href="Service.html#method-i-get_arrival_board_with_details">get_arrival_board_with_details</a>
|
|
209
699
|
</div>
|
|
210
700
|
|
|
701
|
+
|
|
702
|
+
|
|
211
703
|
</div>
|
|
212
704
|
|
|
213
|
-
|
|
705
|
+
|
|
706
|
+
<div id="method-i-get_arr_dep_board_with_details" class="method-detail anchor-link ">
|
|
214
707
|
<div class="method-header">
|
|
215
|
-
<div class="method-heading">
|
|
216
|
-
|
|
217
|
-
class="method-
|
|
218
|
-
|
|
708
|
+
<div class="method-heading-group">
|
|
709
|
+
|
|
710
|
+
<div class="method-heading">
|
|
711
|
+
<a href="#method-i-get_arr_dep_board_with_details" title="Link to this method">
|
|
712
|
+
<span class="method-name">get_arr_dep_board_with_details</span>
|
|
713
|
+
<span class="method-args">(params)</span>
|
|
714
|
+
</a>
|
|
715
|
+
</div>
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
|
|
219
719
|
</div>
|
|
220
|
-
</div>
|
|
221
720
|
|
|
222
|
-
<div class="method-description">
|
|
223
|
-
<p>Retrieves a detailed station arrival + departures board.</p>
|
|
224
721
|
|
|
225
|
-
<
|
|
722
|
+
<div class="method-controls">
|
|
723
|
+
<details class="method-source-toggle">
|
|
724
|
+
<summary><span class="method-source-icon" aria-hidden="true">{}</span> Source</summary>
|
|
725
|
+
</details>
|
|
726
|
+
</div>
|
|
727
|
+
|
|
728
|
+
</div>
|
|
729
|
+
|
|
226
730
|
|
|
227
731
|
<div class="method-source-code" id="get_arr_dep_board_with_details-source">
|
|
228
|
-
<pre><span class="ruby-comment"># File lib/ldbws/service.rb, line 102</span>
|
|
229
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier
|
|
732
|
+
<pre class="ruby"><span class="ruby-comment"># File lib/ldbws/service.rb, line 102</span>
|
|
733
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_arr_dep_board_with_details</span>(<span class="ruby-identifier">params</span>)
|
|
230
734
|
<span class="ruby-identifier">request</span>(
|
|
231
|
-
<span class="ruby-string">"
|
|
735
|
+
<span class="ruby-string">"</span><span class="ruby-string">http://thalesgroup.com/RTTI/2015-05-14/ldb/GetArrDepBoardWithDetails</span><span class="ruby-string">"</span>,
|
|
232
736
|
<span class="ruby-constant">Request</span><span class="ruby-operator">::</span><span class="ruby-constant">GetStationBoardWithDetails</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">params</span>)
|
|
233
737
|
)
|
|
234
738
|
<span class="ruby-keyword">end</span></pre>
|
|
235
739
|
</div>
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
<div class="method-description">
|
|
744
|
+
|
|
745
|
+
|
|
746
|
+
<p>Retrieves a detailed station arrival + departures board.</p>
|
|
747
|
+
|
|
748
|
+
<p>Parameters are validated using <a href="Request/GetStationBoardWithDetails.html">GetStationBoardWithDetails</a>, returns a <a href="ResponseTypes/StationBoardWithDetails.html">StationBoardWithDetails</a> object.</p>
|
|
749
|
+
|
|
750
|
+
|
|
236
751
|
</div>
|
|
237
752
|
|
|
753
|
+
|
|
754
|
+
|
|
238
755
|
<div class="aliases">
|
|
239
756
|
Also aliased as: <a href="Service.html#method-i-get_arrival_departure_board_with_details">get_arrival_departure_board_with_details</a>
|
|
240
757
|
</div>
|
|
241
758
|
|
|
759
|
+
|
|
760
|
+
|
|
242
761
|
</div>
|
|
243
762
|
|
|
244
|
-
|
|
763
|
+
|
|
764
|
+
<div id="method-i-get_arrival_board" class="method-detail anchor-link ">
|
|
245
765
|
<div class="method-header">
|
|
246
|
-
<div class="method-heading">
|
|
247
|
-
|
|
248
|
-
class="method-
|
|
249
|
-
|
|
766
|
+
<div class="method-heading-group">
|
|
767
|
+
|
|
768
|
+
<div class="method-heading">
|
|
769
|
+
<a href="#method-i-get_arrival_board" title="Link to this method">
|
|
770
|
+
<span class="method-name">get_arrival_board</span>
|
|
771
|
+
<span class="method-args">(params)</span>
|
|
772
|
+
</a>
|
|
773
|
+
</div>
|
|
774
|
+
|
|
775
|
+
|
|
776
|
+
|
|
250
777
|
</div>
|
|
251
|
-
</div>
|
|
252
778
|
|
|
253
|
-
<div class="method-description">
|
|
254
|
-
<p>Retrieves a station arrival board.</p>
|
|
255
779
|
|
|
256
|
-
<
|
|
780
|
+
<div class="method-controls">
|
|
781
|
+
<details class="method-source-toggle">
|
|
782
|
+
<summary><span class="method-source-icon" aria-hidden="true">{}</span> Source</summary>
|
|
783
|
+
</details>
|
|
784
|
+
</div>
|
|
785
|
+
|
|
786
|
+
</div>
|
|
787
|
+
|
|
257
788
|
|
|
258
789
|
<div class="method-source-code" id="get_arrival_board-source">
|
|
259
|
-
<pre><span class="ruby-comment"># File lib/ldbws/service.rb, line 58</span>
|
|
260
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier
|
|
790
|
+
<pre class="ruby"><span class="ruby-comment"># File lib/ldbws/service.rb, line 58</span>
|
|
791
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_arrival_board</span>(<span class="ruby-identifier">params</span>)
|
|
261
792
|
<span class="ruby-identifier">request</span>(
|
|
262
|
-
<span class="ruby-string">"
|
|
793
|
+
<span class="ruby-string">"</span><span class="ruby-string">http://thalesgroup.com/RTTI/2012-01-13/ldb/GetArrivalBoard</span><span class="ruby-string">"</span>,
|
|
263
794
|
<span class="ruby-constant">Request</span><span class="ruby-operator">::</span><span class="ruby-constant">GetStationBoard</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">params</span>)
|
|
264
795
|
)
|
|
265
796
|
<span class="ruby-keyword">end</span></pre>
|
|
266
797
|
</div>
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
<div class="method-description">
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
<p>Retrieves a station arrival board.</p>
|
|
805
|
+
|
|
806
|
+
<p>Parameters are validated using <a href="Request/GetStationBoard.html">GetStationBoard</a>, returns a <a href="ResponseTypes/StationBoard.html">StationBoard</a> object.</p>
|
|
807
|
+
|
|
808
|
+
|
|
267
809
|
</div>
|
|
268
810
|
|
|
269
811
|
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
|
|
270
815
|
</div>
|
|
271
816
|
|
|
272
|
-
|
|
817
|
+
|
|
818
|
+
<div id="method-i-get_arrival_board_with_details" class="method-detail anchor-link method-alias">
|
|
273
819
|
<div class="method-header">
|
|
274
|
-
<div class="method-heading">
|
|
275
|
-
|
|
276
|
-
class="method-
|
|
820
|
+
<div class="method-heading-group">
|
|
821
|
+
|
|
822
|
+
<div class="method-heading">
|
|
823
|
+
<a href="#method-i-get_arrival_board_with_details" title="Link to this method">
|
|
824
|
+
<span class="method-name">get_arrival_board_with_details</span>
|
|
825
|
+
<span class="method-args">(params)</span>
|
|
826
|
+
</a>
|
|
827
|
+
</div>
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
|
|
277
831
|
</div>
|
|
832
|
+
|
|
833
|
+
|
|
278
834
|
</div>
|
|
279
835
|
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
|
|
280
839
|
<div class="method-description">
|
|
840
|
+
|
|
841
|
+
|
|
281
842
|
|
|
282
843
|
|
|
844
|
+
|
|
283
845
|
</div>
|
|
284
846
|
|
|
285
847
|
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
|
|
286
851
|
<div class="aliases">
|
|
287
852
|
Alias for: <a href="Service.html#method-i-get_arr_board_with_details">get_arr_board_with_details</a>
|
|
288
853
|
</div>
|
|
854
|
+
|
|
289
855
|
</div>
|
|
290
856
|
|
|
291
|
-
|
|
857
|
+
|
|
858
|
+
<div id="method-i-get_arrival_departure_board" class="method-detail anchor-link ">
|
|
292
859
|
<div class="method-header">
|
|
293
|
-
<div class="method-heading">
|
|
294
|
-
|
|
295
|
-
class="method-
|
|
296
|
-
|
|
860
|
+
<div class="method-heading-group">
|
|
861
|
+
|
|
862
|
+
<div class="method-heading">
|
|
863
|
+
<a href="#method-i-get_arrival_departure_board" title="Link to this method">
|
|
864
|
+
<span class="method-name">get_arrival_departure_board</span>
|
|
865
|
+
<span class="method-args">(params)</span>
|
|
866
|
+
</a>
|
|
867
|
+
</div>
|
|
868
|
+
|
|
869
|
+
|
|
870
|
+
|
|
297
871
|
</div>
|
|
298
|
-
</div>
|
|
299
872
|
|
|
300
|
-
<div class="method-description">
|
|
301
|
-
<p>Retrieves a station arrival + departure board.</p>
|
|
302
873
|
|
|
303
|
-
<
|
|
874
|
+
<div class="method-controls">
|
|
875
|
+
<details class="method-source-toggle">
|
|
876
|
+
<summary><span class="method-source-icon" aria-hidden="true">{}</span> Source</summary>
|
|
877
|
+
</details>
|
|
878
|
+
</div>
|
|
879
|
+
|
|
880
|
+
</div>
|
|
881
|
+
|
|
304
882
|
|
|
305
883
|
<div class="method-source-code" id="get_arrival_departure_board-source">
|
|
306
|
-
<pre><span class="ruby-comment"># File lib/ldbws/service.rb, line 69</span>
|
|
307
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier
|
|
884
|
+
<pre class="ruby"><span class="ruby-comment"># File lib/ldbws/service.rb, line 69</span>
|
|
885
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_arrival_departure_board</span>(<span class="ruby-identifier">params</span>)
|
|
308
886
|
<span class="ruby-identifier">request</span>(
|
|
309
|
-
<span class="ruby-string">"
|
|
887
|
+
<span class="ruby-string">"</span><span class="ruby-string">http://thalesgroup.com/RTTI/2012-01-13/ldb/GetArrivalDepartureBoard</span><span class="ruby-string">"</span>,
|
|
310
888
|
<span class="ruby-constant">Request</span><span class="ruby-operator">::</span><span class="ruby-constant">GetStationBoard</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">params</span>)
|
|
311
889
|
)
|
|
312
890
|
<span class="ruby-keyword">end</span></pre>
|
|
313
891
|
</div>
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
<div class="method-description">
|
|
896
|
+
|
|
897
|
+
|
|
898
|
+
<p>Retrieves a station arrival + departure board.</p>
|
|
899
|
+
|
|
900
|
+
<p>Parameters are validated using <a href="Request/GetStationBoard.html">GetStationBoard</a>, returns a <a href="ResponseTypes/StationBoard.html">StationBoard</a> object.</p>
|
|
901
|
+
|
|
902
|
+
|
|
314
903
|
</div>
|
|
315
904
|
|
|
316
905
|
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
|
|
317
909
|
</div>
|
|
318
910
|
|
|
319
|
-
|
|
911
|
+
|
|
912
|
+
<div id="method-i-get_arrival_departure_board_with_details" class="method-detail anchor-link method-alias">
|
|
320
913
|
<div class="method-header">
|
|
321
|
-
<div class="method-heading">
|
|
322
|
-
|
|
323
|
-
class="method-
|
|
914
|
+
<div class="method-heading-group">
|
|
915
|
+
|
|
916
|
+
<div class="method-heading">
|
|
917
|
+
<a href="#method-i-get_arrival_departure_board_with_details" title="Link to this method">
|
|
918
|
+
<span class="method-name">get_arrival_departure_board_with_details</span>
|
|
919
|
+
<span class="method-args">(params)</span>
|
|
920
|
+
</a>
|
|
921
|
+
</div>
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
|
|
324
925
|
</div>
|
|
926
|
+
|
|
927
|
+
|
|
325
928
|
</div>
|
|
326
929
|
|
|
930
|
+
|
|
931
|
+
|
|
932
|
+
|
|
327
933
|
<div class="method-description">
|
|
934
|
+
|
|
935
|
+
|
|
328
936
|
|
|
329
937
|
|
|
938
|
+
|
|
330
939
|
</div>
|
|
331
940
|
|
|
332
941
|
|
|
942
|
+
|
|
943
|
+
|
|
944
|
+
|
|
333
945
|
<div class="aliases">
|
|
334
946
|
Alias for: <a href="Service.html#method-i-get_arr_dep_board_with_details">get_arr_dep_board_with_details</a>
|
|
335
947
|
</div>
|
|
948
|
+
|
|
336
949
|
</div>
|
|
337
950
|
|
|
338
|
-
|
|
951
|
+
|
|
952
|
+
<div id="method-i-get_dep_board_with_details" class="method-detail anchor-link ">
|
|
339
953
|
<div class="method-header">
|
|
340
|
-
<div class="method-heading">
|
|
341
|
-
|
|
342
|
-
class="method-
|
|
343
|
-
|
|
954
|
+
<div class="method-heading-group">
|
|
955
|
+
|
|
956
|
+
<div class="method-heading">
|
|
957
|
+
<a href="#method-i-get_dep_board_with_details" title="Link to this method">
|
|
958
|
+
<span class="method-name">get_dep_board_with_details</span>
|
|
959
|
+
<span class="method-args">(params)</span>
|
|
960
|
+
</a>
|
|
961
|
+
</div>
|
|
962
|
+
|
|
963
|
+
|
|
964
|
+
|
|
344
965
|
</div>
|
|
345
|
-
</div>
|
|
346
966
|
|
|
347
|
-
<div class="method-description">
|
|
348
|
-
<p>Retrieves a detailed station departure board.</p>
|
|
349
967
|
|
|
350
|
-
<
|
|
968
|
+
<div class="method-controls">
|
|
969
|
+
<details class="method-source-toggle">
|
|
970
|
+
<summary><span class="method-source-icon" aria-hidden="true">{}</span> Source</summary>
|
|
971
|
+
</details>
|
|
972
|
+
</div>
|
|
973
|
+
|
|
974
|
+
</div>
|
|
975
|
+
|
|
351
976
|
|
|
352
977
|
<div class="method-source-code" id="get_dep_board_with_details-source">
|
|
353
|
-
<pre><span class="ruby-comment"># File lib/ldbws/service.rb, line 80</span>
|
|
354
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier
|
|
978
|
+
<pre class="ruby"><span class="ruby-comment"># File lib/ldbws/service.rb, line 80</span>
|
|
979
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_dep_board_with_details</span>(<span class="ruby-identifier">params</span>)
|
|
355
980
|
<span class="ruby-identifier">request</span>(
|
|
356
|
-
<span class="ruby-string">"
|
|
981
|
+
<span class="ruby-string">"</span><span class="ruby-string">http://thalesgroup.com/RTTI/2015-05-14/ldb/GetDepBoardWithDetails</span><span class="ruby-string">"</span>,
|
|
357
982
|
<span class="ruby-constant">Request</span><span class="ruby-operator">::</span><span class="ruby-constant">GetStationBoardWithDetails</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">params</span>)
|
|
358
983
|
)
|
|
359
984
|
<span class="ruby-keyword">end</span></pre>
|
|
360
985
|
</div>
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
<div class="method-description">
|
|
990
|
+
|
|
991
|
+
|
|
992
|
+
<p>Retrieves a detailed station departure board.</p>
|
|
993
|
+
|
|
994
|
+
<p>Parameters are validated using <a href="Request/GetStationBoardWithDetails.html">GetStationBoardWithDetails</a>, returns a <a href="ResponseTypes/StationBoardWithDetails.html">StationBoardWithDetails</a> object.</p>
|
|
995
|
+
|
|
996
|
+
|
|
361
997
|
</div>
|
|
362
998
|
|
|
999
|
+
|
|
1000
|
+
|
|
363
1001
|
<div class="aliases">
|
|
364
1002
|
Also aliased as: <a href="Service.html#method-i-get_departure_board_with_details">get_departure_board_with_details</a>
|
|
365
1003
|
</div>
|
|
366
1004
|
|
|
1005
|
+
|
|
1006
|
+
|
|
367
1007
|
</div>
|
|
368
1008
|
|
|
369
|
-
|
|
1009
|
+
|
|
1010
|
+
<div id="method-i-get_departure_board" class="method-detail anchor-link ">
|
|
370
1011
|
<div class="method-header">
|
|
371
|
-
<div class="method-heading">
|
|
372
|
-
|
|
373
|
-
class="method-
|
|
374
|
-
|
|
1012
|
+
<div class="method-heading-group">
|
|
1013
|
+
|
|
1014
|
+
<div class="method-heading">
|
|
1015
|
+
<a href="#method-i-get_departure_board" title="Link to this method">
|
|
1016
|
+
<span class="method-name">get_departure_board</span>
|
|
1017
|
+
<span class="method-args">(params)</span>
|
|
1018
|
+
</a>
|
|
1019
|
+
</div>
|
|
1020
|
+
|
|
1021
|
+
|
|
1022
|
+
|
|
375
1023
|
</div>
|
|
376
|
-
</div>
|
|
377
1024
|
|
|
378
|
-
<div class="method-description">
|
|
379
|
-
<p>Retrieves a station departure board.</p>
|
|
380
1025
|
|
|
381
|
-
<
|
|
1026
|
+
<div class="method-controls">
|
|
1027
|
+
<details class="method-source-toggle">
|
|
1028
|
+
<summary><span class="method-source-icon" aria-hidden="true">{}</span> Source</summary>
|
|
1029
|
+
</details>
|
|
1030
|
+
</div>
|
|
1031
|
+
|
|
1032
|
+
</div>
|
|
1033
|
+
|
|
382
1034
|
|
|
383
1035
|
<div class="method-source-code" id="get_departure_board-source">
|
|
384
|
-
<pre><span class="ruby-comment"># File lib/ldbws/service.rb, line 47</span>
|
|
385
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier
|
|
1036
|
+
<pre class="ruby"><span class="ruby-comment"># File lib/ldbws/service.rb, line 47</span>
|
|
1037
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_departure_board</span>(<span class="ruby-identifier">params</span>)
|
|
386
1038
|
<span class="ruby-identifier">request</span>(
|
|
387
|
-
<span class="ruby-string">"
|
|
1039
|
+
<span class="ruby-string">"</span><span class="ruby-string">http://thalesgroup.com/RTTI/2012-01-13/ldb/GetDepartureBoard</span><span class="ruby-string">"</span>,
|
|
388
1040
|
<span class="ruby-constant">Request</span><span class="ruby-operator">::</span><span class="ruby-constant">GetStationBoard</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">params</span>)
|
|
389
1041
|
)
|
|
390
1042
|
<span class="ruby-keyword">end</span></pre>
|
|
391
1043
|
</div>
|
|
1044
|
+
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
<div class="method-description">
|
|
1048
|
+
|
|
1049
|
+
|
|
1050
|
+
<p>Retrieves a station departure board.</p>
|
|
1051
|
+
|
|
1052
|
+
<p>Parameters are validated using <a href="Request/GetStationBoard.html">GetStationBoard</a>, returns a <a href="ResponseTypes/StationBoard.html">StationBoard</a> object.</p>
|
|
1053
|
+
|
|
1054
|
+
|
|
392
1055
|
</div>
|
|
393
1056
|
|
|
394
1057
|
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
|
|
395
1061
|
</div>
|
|
396
1062
|
|
|
397
|
-
|
|
1063
|
+
|
|
1064
|
+
<div id="method-i-get_departure_board_with_details" class="method-detail anchor-link method-alias">
|
|
398
1065
|
<div class="method-header">
|
|
399
|
-
<div class="method-heading">
|
|
400
|
-
|
|
401
|
-
class="method-
|
|
1066
|
+
<div class="method-heading-group">
|
|
1067
|
+
|
|
1068
|
+
<div class="method-heading">
|
|
1069
|
+
<a href="#method-i-get_departure_board_with_details" title="Link to this method">
|
|
1070
|
+
<span class="method-name">get_departure_board_with_details</span>
|
|
1071
|
+
<span class="method-args">(params)</span>
|
|
1072
|
+
</a>
|
|
1073
|
+
</div>
|
|
1074
|
+
|
|
1075
|
+
|
|
1076
|
+
|
|
402
1077
|
</div>
|
|
1078
|
+
|
|
1079
|
+
|
|
403
1080
|
</div>
|
|
404
1081
|
|
|
1082
|
+
|
|
1083
|
+
|
|
1084
|
+
|
|
405
1085
|
<div class="method-description">
|
|
1086
|
+
|
|
1087
|
+
|
|
406
1088
|
|
|
407
1089
|
|
|
1090
|
+
|
|
408
1091
|
</div>
|
|
409
1092
|
|
|
410
1093
|
|
|
1094
|
+
|
|
1095
|
+
|
|
1096
|
+
|
|
411
1097
|
<div class="aliases">
|
|
412
1098
|
Alias for: <a href="Service.html#method-i-get_dep_board_with_details">get_dep_board_with_details</a>
|
|
413
1099
|
</div>
|
|
1100
|
+
|
|
414
1101
|
</div>
|
|
415
1102
|
|
|
416
|
-
|
|
1103
|
+
|
|
1104
|
+
<div id="method-i-get_fastest_departures" class="method-detail anchor-link ">
|
|
417
1105
|
<div class="method-header">
|
|
418
|
-
<div class="method-heading">
|
|
419
|
-
|
|
420
|
-
class="method-
|
|
421
|
-
|
|
1106
|
+
<div class="method-heading-group">
|
|
1107
|
+
|
|
1108
|
+
<div class="method-heading">
|
|
1109
|
+
<a href="#method-i-get_fastest_departures" title="Link to this method">
|
|
1110
|
+
<span class="method-name">get_fastest_departures</span>
|
|
1111
|
+
<span class="method-args">(params)</span>
|
|
1112
|
+
</a>
|
|
1113
|
+
</div>
|
|
1114
|
+
|
|
1115
|
+
|
|
1116
|
+
|
|
422
1117
|
</div>
|
|
423
|
-
</div>
|
|
424
1118
|
|
|
425
|
-
<div class="method-description">
|
|
426
|
-
<p>Retrieves the fastest departures from one station to one or many others.</p>
|
|
427
1119
|
|
|
428
|
-
<
|
|
1120
|
+
<div class="method-controls">
|
|
1121
|
+
<details class="method-source-toggle">
|
|
1122
|
+
<summary><span class="method-source-icon" aria-hidden="true">{}</span> Source</summary>
|
|
1123
|
+
</details>
|
|
1124
|
+
</div>
|
|
1125
|
+
|
|
1126
|
+
</div>
|
|
1127
|
+
|
|
429
1128
|
|
|
430
1129
|
<div class="method-source-code" id="get_fastest_departures-source">
|
|
431
|
-
<pre><span class="ruby-comment"># File lib/ldbws/service.rb, line 124</span>
|
|
432
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier
|
|
1130
|
+
<pre class="ruby"><span class="ruby-comment"># File lib/ldbws/service.rb, line 124</span>
|
|
1131
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_fastest_departures</span>(<span class="ruby-identifier">params</span>)
|
|
433
1132
|
<span class="ruby-identifier">request</span>(
|
|
434
|
-
<span class="ruby-string">"
|
|
1133
|
+
<span class="ruby-string">"</span><span class="ruby-string">http://thalesgroup.com/RTTI/2015-05-14/ldb/GetFastestDepartures</span><span class="ruby-string">"</span>,
|
|
435
1134
|
<span class="ruby-constant">Request</span><span class="ruby-operator">::</span><span class="ruby-constant">GetDeparturesBoard</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">params</span>)
|
|
436
1135
|
)
|
|
437
1136
|
<span class="ruby-keyword">end</span></pre>
|
|
438
1137
|
</div>
|
|
1138
|
+
|
|
1139
|
+
|
|
1140
|
+
|
|
1141
|
+
<div class="method-description">
|
|
1142
|
+
|
|
1143
|
+
|
|
1144
|
+
<p>Retrieves the fastest departures from one station to one or many others.</p>
|
|
1145
|
+
|
|
1146
|
+
<p>Parameters are validated using <a href="Request/GetDeparturesBoard.html">GetDeparturesBoard</a>, returns a <a href="ResponseTypes/DeparturesBoard.html">DeparturesBoard</a> object.</p>
|
|
1147
|
+
|
|
1148
|
+
|
|
439
1149
|
</div>
|
|
440
1150
|
|
|
441
1151
|
|
|
1152
|
+
|
|
1153
|
+
|
|
1154
|
+
|
|
442
1155
|
</div>
|
|
443
1156
|
|
|
444
|
-
|
|
1157
|
+
|
|
1158
|
+
<div id="method-i-get_fastest_departures_with_details" class="method-detail anchor-link ">
|
|
445
1159
|
<div class="method-header">
|
|
446
|
-
<div class="method-heading">
|
|
447
|
-
|
|
448
|
-
class="method-
|
|
449
|
-
|
|
1160
|
+
<div class="method-heading-group">
|
|
1161
|
+
|
|
1162
|
+
<div class="method-heading">
|
|
1163
|
+
<a href="#method-i-get_fastest_departures_with_details" title="Link to this method">
|
|
1164
|
+
<span class="method-name">get_fastest_departures_with_details</span>
|
|
1165
|
+
<span class="method-args">(params)</span>
|
|
1166
|
+
</a>
|
|
1167
|
+
</div>
|
|
1168
|
+
|
|
1169
|
+
|
|
1170
|
+
|
|
450
1171
|
</div>
|
|
451
|
-
</div>
|
|
452
1172
|
|
|
453
|
-
<div class="method-description">
|
|
454
|
-
<p>Retrieves detailed information about the fastest departures from one station to one or many others.</p>
|
|
455
1173
|
|
|
456
|
-
<
|
|
1174
|
+
<div class="method-controls">
|
|
1175
|
+
<details class="method-source-toggle">
|
|
1176
|
+
<summary><span class="method-source-icon" aria-hidden="true">{}</span> Source</summary>
|
|
1177
|
+
</details>
|
|
1178
|
+
</div>
|
|
1179
|
+
|
|
1180
|
+
</div>
|
|
1181
|
+
|
|
457
1182
|
|
|
458
1183
|
<div class="method-source-code" id="get_fastest_departures_with_details-source">
|
|
459
|
-
<pre><span class="ruby-comment"># File lib/ldbws/service.rb, line 146</span>
|
|
460
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier
|
|
1184
|
+
<pre class="ruby"><span class="ruby-comment"># File lib/ldbws/service.rb, line 146</span>
|
|
1185
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_fastest_departures_with_details</span>(<span class="ruby-identifier">params</span>)
|
|
461
1186
|
<span class="ruby-identifier">request</span>(
|
|
462
|
-
<span class="ruby-string">"
|
|
1187
|
+
<span class="ruby-string">"</span><span class="ruby-string">http://thalesgroup.com/RTTI/2015-05-14/ldb/GetFastestDeparturesWithDetails</span><span class="ruby-string">"</span>,
|
|
463
1188
|
<span class="ruby-constant">Request</span><span class="ruby-operator">::</span><span class="ruby-constant">GetDeparturesBoardWithDetails</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">params</span>)
|
|
464
1189
|
)
|
|
465
1190
|
<span class="ruby-keyword">end</span></pre>
|
|
466
1191
|
</div>
|
|
1192
|
+
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
<div class="method-description">
|
|
1196
|
+
|
|
1197
|
+
|
|
1198
|
+
<p>Retrieves detailed information about the fastest departures from one station to one or many others.</p>
|
|
1199
|
+
|
|
1200
|
+
<p>Parameters are validated using <a href="Request/GetDeparturesBoardWithDetails.html">GetDeparturesBoardWithDetails</a>, returns a <a href="ResponseTypes/DeparturesBoardWithDetails.html">DeparturesBoardWithDetails</a> object.</p>
|
|
1201
|
+
|
|
1202
|
+
|
|
467
1203
|
</div>
|
|
468
1204
|
|
|
469
1205
|
|
|
1206
|
+
|
|
1207
|
+
|
|
1208
|
+
|
|
470
1209
|
</div>
|
|
471
1210
|
|
|
472
|
-
|
|
1211
|
+
|
|
1212
|
+
<div id="method-i-get_next_departures" class="method-detail anchor-link ">
|
|
473
1213
|
<div class="method-header">
|
|
474
|
-
<div class="method-heading">
|
|
475
|
-
|
|
476
|
-
class="method-
|
|
477
|
-
|
|
1214
|
+
<div class="method-heading-group">
|
|
1215
|
+
|
|
1216
|
+
<div class="method-heading">
|
|
1217
|
+
<a href="#method-i-get_next_departures" title="Link to this method">
|
|
1218
|
+
<span class="method-name">get_next_departures</span>
|
|
1219
|
+
<span class="method-args">(params)</span>
|
|
1220
|
+
</a>
|
|
1221
|
+
</div>
|
|
1222
|
+
|
|
1223
|
+
|
|
1224
|
+
|
|
478
1225
|
</div>
|
|
479
|
-
</div>
|
|
480
1226
|
|
|
481
|
-
<div class="method-description">
|
|
482
|
-
<p>Retrieves the next departures from one station to one or many others.</p>
|
|
483
1227
|
|
|
484
|
-
<
|
|
1228
|
+
<div class="method-controls">
|
|
1229
|
+
<details class="method-source-toggle">
|
|
1230
|
+
<summary><span class="method-source-icon" aria-hidden="true">{}</span> Source</summary>
|
|
1231
|
+
</details>
|
|
1232
|
+
</div>
|
|
1233
|
+
|
|
1234
|
+
</div>
|
|
1235
|
+
|
|
485
1236
|
|
|
486
1237
|
<div class="method-source-code" id="get_next_departures-source">
|
|
487
|
-
<pre><span class="ruby-comment"># File lib/ldbws/service.rb, line 113</span>
|
|
488
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier
|
|
1238
|
+
<pre class="ruby"><span class="ruby-comment"># File lib/ldbws/service.rb, line 113</span>
|
|
1239
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_next_departures</span>(<span class="ruby-identifier">params</span>)
|
|
489
1240
|
<span class="ruby-identifier">request</span>(
|
|
490
|
-
<span class="ruby-string">"
|
|
1241
|
+
<span class="ruby-string">"</span><span class="ruby-string">http://thalesgroup.com/RTTI/2015-05-14/ldb/GetNextDepartures</span><span class="ruby-string">"</span>,
|
|
491
1242
|
<span class="ruby-constant">Request</span><span class="ruby-operator">::</span><span class="ruby-constant">GetDeparturesBoard</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">params</span>)
|
|
492
1243
|
)
|
|
493
1244
|
<span class="ruby-keyword">end</span></pre>
|
|
494
1245
|
</div>
|
|
1246
|
+
|
|
1247
|
+
|
|
1248
|
+
|
|
1249
|
+
<div class="method-description">
|
|
1250
|
+
|
|
1251
|
+
|
|
1252
|
+
<p>Retrieves the next departures from one station to one or many others.</p>
|
|
1253
|
+
|
|
1254
|
+
<p>Parameters are validated using <a href="Request/GetDeparturesBoard.html">GetDeparturesBoard</a>, returns a <a href="ResponseTypes/DeparturesBoard.html">DeparturesBoard</a> object.</p>
|
|
1255
|
+
|
|
1256
|
+
|
|
495
1257
|
</div>
|
|
496
1258
|
|
|
497
1259
|
|
|
1260
|
+
|
|
1261
|
+
|
|
1262
|
+
|
|
498
1263
|
</div>
|
|
499
1264
|
|
|
500
|
-
|
|
1265
|
+
|
|
1266
|
+
<div id="method-i-get_next_departures_with_details" class="method-detail anchor-link ">
|
|
501
1267
|
<div class="method-header">
|
|
502
|
-
<div class="method-heading">
|
|
503
|
-
|
|
504
|
-
class="method-
|
|
505
|
-
|
|
1268
|
+
<div class="method-heading-group">
|
|
1269
|
+
|
|
1270
|
+
<div class="method-heading">
|
|
1271
|
+
<a href="#method-i-get_next_departures_with_details" title="Link to this method">
|
|
1272
|
+
<span class="method-name">get_next_departures_with_details</span>
|
|
1273
|
+
<span class="method-args">(params)</span>
|
|
1274
|
+
</a>
|
|
1275
|
+
</div>
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
|
|
506
1279
|
</div>
|
|
507
|
-
</div>
|
|
508
1280
|
|
|
509
|
-
<div class="method-description">
|
|
510
|
-
<p>Retrieves detailed information about the next departures from one station to one or many others.</p>
|
|
511
1281
|
|
|
512
|
-
<
|
|
1282
|
+
<div class="method-controls">
|
|
1283
|
+
<details class="method-source-toggle">
|
|
1284
|
+
<summary><span class="method-source-icon" aria-hidden="true">{}</span> Source</summary>
|
|
1285
|
+
</details>
|
|
1286
|
+
</div>
|
|
1287
|
+
|
|
1288
|
+
</div>
|
|
1289
|
+
|
|
513
1290
|
|
|
514
1291
|
<div class="method-source-code" id="get_next_departures_with_details-source">
|
|
515
|
-
<pre><span class="ruby-comment"># File lib/ldbws/service.rb, line 135</span>
|
|
516
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier
|
|
1292
|
+
<pre class="ruby"><span class="ruby-comment"># File lib/ldbws/service.rb, line 135</span>
|
|
1293
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_next_departures_with_details</span>(<span class="ruby-identifier">params</span>)
|
|
517
1294
|
<span class="ruby-identifier">request</span>(
|
|
518
|
-
<span class="ruby-string">"
|
|
1295
|
+
<span class="ruby-string">"</span><span class="ruby-string">http://thalesgroup.com/RTTI/2015-05-14/ldb/GetNextDeparturesWithDetails</span><span class="ruby-string">"</span>,
|
|
519
1296
|
<span class="ruby-constant">Request</span><span class="ruby-operator">::</span><span class="ruby-constant">GetDeparturesBoardWithDetails</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">params</span>)
|
|
520
1297
|
)
|
|
521
1298
|
<span class="ruby-keyword">end</span></pre>
|
|
522
1299
|
</div>
|
|
1300
|
+
|
|
1301
|
+
|
|
1302
|
+
|
|
1303
|
+
<div class="method-description">
|
|
1304
|
+
|
|
1305
|
+
|
|
1306
|
+
<p>Retrieves detailed information about the next departures from one station to one or many others.</p>
|
|
1307
|
+
|
|
1308
|
+
<p>Parameters are validated using <a href="Request/GetDeparturesBoardWithDetails.html">GetDeparturesBoardWithDetails</a>, returns a <a href="ResponseTypes/DeparturesBoardWithDetails.html">DeparturesBoardWithDetails</a> object.</p>
|
|
1309
|
+
|
|
1310
|
+
|
|
523
1311
|
</div>
|
|
524
1312
|
|
|
525
1313
|
|
|
1314
|
+
|
|
1315
|
+
|
|
1316
|
+
|
|
526
1317
|
</div>
|
|
527
1318
|
|
|
528
|
-
|
|
1319
|
+
|
|
1320
|
+
<div id="method-i-get_service_details" class="method-detail anchor-link ">
|
|
529
1321
|
<div class="method-header">
|
|
530
|
-
<div class="method-heading">
|
|
531
|
-
|
|
532
|
-
class="method-
|
|
533
|
-
|
|
1322
|
+
<div class="method-heading-group">
|
|
1323
|
+
|
|
1324
|
+
<div class="method-heading">
|
|
1325
|
+
<a href="#method-i-get_service_details" title="Link to this method">
|
|
1326
|
+
<span class="method-name">get_service_details</span>
|
|
1327
|
+
<span class="method-args">(params)</span>
|
|
1328
|
+
</a>
|
|
1329
|
+
</div>
|
|
1330
|
+
|
|
1331
|
+
|
|
1332
|
+
|
|
534
1333
|
</div>
|
|
535
|
-
</div>
|
|
536
1334
|
|
|
537
|
-
<div class="method-description">
|
|
538
|
-
<p>Retrieves information about a specific service.</p>
|
|
539
1335
|
|
|
540
|
-
<
|
|
1336
|
+
<div class="method-controls">
|
|
1337
|
+
<details class="method-source-toggle">
|
|
1338
|
+
<summary><span class="method-source-icon" aria-hidden="true">{}</span> Source</summary>
|
|
1339
|
+
</details>
|
|
1340
|
+
</div>
|
|
1341
|
+
|
|
1342
|
+
</div>
|
|
1343
|
+
|
|
541
1344
|
|
|
542
1345
|
<div class="method-source-code" id="get_service_details-source">
|
|
543
|
-
<pre><span class="ruby-comment"># File lib/ldbws/service.rb, line 157</span>
|
|
544
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier
|
|
1346
|
+
<pre class="ruby"><span class="ruby-comment"># File lib/ldbws/service.rb, line 157</span>
|
|
1347
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_service_details</span>(<span class="ruby-identifier">params</span>)
|
|
545
1348
|
<span class="ruby-identifier">request</span>(
|
|
546
|
-
<span class="ruby-string">"
|
|
1349
|
+
<span class="ruby-string">"</span><span class="ruby-string">http://thalesgroup.com/RTTI/2012-01-13/ldb/GetServiceDetails</span><span class="ruby-string">"</span>,
|
|
547
1350
|
<span class="ruby-constant">Request</span><span class="ruby-operator">::</span><span class="ruby-constant">GetServiceDetails</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">params</span>)
|
|
548
1351
|
)
|
|
549
1352
|
<span class="ruby-keyword">end</span></pre>
|
|
550
1353
|
</div>
|
|
1354
|
+
|
|
1355
|
+
|
|
1356
|
+
|
|
1357
|
+
<div class="method-description">
|
|
1358
|
+
|
|
1359
|
+
|
|
1360
|
+
<p>Retrieves information about a specific service.</p>
|
|
1361
|
+
|
|
1362
|
+
<p>Parameters are validated using <a href="Request/GetServiceDetails.html">GetServiceDetails</a>, returns a <a href="ResponseTypes/ServiceDetails.html">ServiceDetails</a> object.</p>
|
|
1363
|
+
|
|
1364
|
+
|
|
551
1365
|
</div>
|
|
552
1366
|
|
|
553
1367
|
|
|
1368
|
+
|
|
1369
|
+
|
|
1370
|
+
|
|
554
1371
|
</div>
|
|
555
1372
|
|
|
1373
|
+
|
|
556
1374
|
</section>
|
|
557
1375
|
|
|
1376
|
+
|
|
1377
|
+
|
|
1378
|
+
|
|
558
1379
|
</section>
|
|
1380
|
+
|
|
559
1381
|
</main>
|
|
560
1382
|
|
|
1383
|
+
<aside id="table-of-contents" class="table-of-contents" role="complementary" aria-label="Table of Contents">
|
|
1384
|
+
<div class="toc-sticky">
|
|
1385
|
+
<h3 class="toc-heading">On This Page</h3>
|
|
1386
|
+
<nav class="toc-nav" id="toc-nav" aria-label="Page sections">
|
|
1387
|
+
<!-- Generated by JavaScript based on page headings -->
|
|
1388
|
+
</nav>
|
|
1389
|
+
</div>
|
|
1390
|
+
</aside>
|
|
1391
|
+
|
|
561
1392
|
|
|
562
|
-
<footer
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
<
|
|
1393
|
+
<footer class="site-footer">
|
|
1394
|
+
|
|
1395
|
+
|
|
1396
|
+
<div class="footer-bottom">
|
|
1397
|
+
<p>
|
|
1398
|
+
Generated by <a href="https://ruby.github.io/rdoc/">RDoc 8.1.0</a>
|
|
1399
|
+
using the Aliki theme by <a href="http://st0012.dev">Stan Lo</a>
|
|
1400
|
+
</p>
|
|
1401
|
+
</div>
|
|
566
1402
|
</footer>
|
|
567
1403
|
|
|
1404
|
+
</body>
|
|
1405
|
+
|