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.html
CHANGED
|
@@ -1,81 +1,457 @@
|
|
|
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>module Ldbws - RDoc Documentation</title>
|
|
8
9
|
|
|
10
|
+
|
|
11
|
+
<meta
|
|
12
|
+
name="keywords"
|
|
13
|
+
content="ruby,module,Ldbws"
|
|
14
|
+
>
|
|
15
|
+
|
|
16
|
+
<meta
|
|
17
|
+
name="description"
|
|
18
|
+
content="module Ldbws: Provides a Ruby abstraction around the UK’s Network Rail live departure board webservice (LDBWS). Service] for more information."
|
|
19
|
+
>
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
<!-- Open Graph / Facebook -->
|
|
26
|
+
<meta property="og:type" content="website">
|
|
27
|
+
<meta property="og:title" content="module Ldbws - RDoc Documentation">
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
<meta property="og:description" content="Provides a Ruby abstraction around the UK’s Network Rail live departure board webservice (LDBWS). Service] for more information.">
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
<!-- Twitter -->
|
|
38
|
+
<meta name="twitter:card" content="summary">
|
|
39
|
+
<meta name="twitter:title" content="module Ldbws - RDoc Documentation">
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
<meta name="twitter:description" content="Provides a Ruby abstraction around the UK’s Network Rail live departure board webservice (LDBWS). Service] for more information.">
|
|
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="module 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>
|
|
22
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>
|
|
23
354
|
|
|
24
|
-
<body id="top" role="document" class="module">
|
|
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
355
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<a href="./table_of_contents.html#classes">Classes</a>
|
|
35
|
-
<a href="./table_of_contents.html#methods">Methods</a>
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
356
|
+
<nav id="sidebar-navigation" role="navigation" hidden>
|
|
357
|
+
|
|
38
358
|
|
|
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
359
|
|
|
48
|
-
<ul id="search-results" aria-label="Search Results"
|
|
49
|
-
aria-busy="false" aria-expanded="false"
|
|
50
|
-
aria-atomic="false" class="initially-hidden"></ul>
|
|
51
|
-
</form>
|
|
52
|
-
</div>
|
|
53
360
|
|
|
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>
|
|
54
395
|
</div>
|
|
55
396
|
|
|
397
|
+
|
|
56
398
|
|
|
57
399
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
<!-- Method Quickref -->
|
|
65
|
-
<div id="method-list-section" class="nav-section">
|
|
66
|
-
<h3>Methods</h3>
|
|
400
|
+
|
|
67
401
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
</div>
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
|
|
72
405
|
|
|
406
|
+
|
|
407
|
+
<div class="nav-section">
|
|
408
|
+
<details class="nav-section-collapsible" open>
|
|
409
|
+
<summary class="nav-section-header">
|
|
410
|
+
<span class="nav-section-icon">
|
|
411
|
+
<svg><use href="#icon-class-methods"></use></svg>
|
|
412
|
+
</span>
|
|
413
|
+
<span class="nav-section-title">Class Methods</span>
|
|
414
|
+
<span class="nav-section-chevron">
|
|
415
|
+
<svg><use href="#icon-chevron"></use></svg>
|
|
416
|
+
</span>
|
|
417
|
+
</summary>
|
|
418
|
+
<ul class="nav-list" role="directory">
|
|
419
|
+
|
|
420
|
+
<li ><a href="#method-c-service">service</a></li>
|
|
421
|
+
|
|
422
|
+
</ul>
|
|
423
|
+
</details>
|
|
73
424
|
</div>
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
<div id="classindex-section" class="nav-section">
|
|
430
|
+
<details class="nav-section-collapsible" open>
|
|
431
|
+
<summary class="nav-section-header">
|
|
432
|
+
<span class="nav-section-icon">
|
|
433
|
+
<svg><use href="#icon-layers"></use></svg>
|
|
434
|
+
</span>
|
|
435
|
+
<span class="nav-section-title">Classes and Modules</span>
|
|
436
|
+
<span class="nav-section-chevron">
|
|
437
|
+
<svg><use href="#icon-chevron"></use></svg>
|
|
438
|
+
</span>
|
|
439
|
+
</summary>
|
|
440
|
+
|
|
441
|
+
<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>
|
|
442
|
+
</details>
|
|
443
|
+
</div>
|
|
444
|
+
|
|
74
445
|
</nav>
|
|
75
446
|
|
|
76
|
-
<main role="main" aria-labelledby="module-
|
|
77
|
-
|
|
78
|
-
|
|
447
|
+
<main role="main" aria-labelledby="module-ldbws">
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
<span id="module-Ldbws" class="legacy-anchor"></span>
|
|
452
|
+
<h1 id="module-ldbws" class="anchor-link module page-title">
|
|
453
|
+
<span class="page-title-kind">module</span>
|
|
454
|
+
<span class="page-title-name">Ldbws</span>
|
|
79
455
|
</h1>
|
|
80
456
|
|
|
81
457
|
<section class="description">
|
|
@@ -86,64 +462,135 @@
|
|
|
86
462
|
|
|
87
463
|
</section>
|
|
88
464
|
|
|
89
|
-
|
|
465
|
+
|
|
466
|
+
<span id="5Buntitled-5D" class="legacy-anchor"></span>
|
|
467
|
+
<section class="documentation-section anchor-link">
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
90
471
|
|
|
91
472
|
|
|
92
473
|
<section class="constants-list">
|
|
93
474
|
<header>
|
|
94
|
-
<h3>Constants</h3>
|
|
475
|
+
<h3 id="untitled-constants"><a href="#untitled-constants">Constants</a></h3>
|
|
95
476
|
</header>
|
|
96
477
|
<dl>
|
|
97
|
-
|
|
98
|
-
<
|
|
478
|
+
|
|
479
|
+
<dt id="VERSION">VERSION</dt>
|
|
480
|
+
|
|
481
|
+
<dd>
|
|
482
|
+
|
|
483
|
+
<p>The current gem version.</p>
|
|
484
|
+
</dd>
|
|
485
|
+
|
|
486
|
+
|
|
99
487
|
</dl>
|
|
100
488
|
</section>
|
|
101
489
|
|
|
102
490
|
|
|
103
491
|
|
|
104
|
-
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
<section id="public-class-untitled-method-details" class="method-section anchor-link">
|
|
105
498
|
<header>
|
|
106
|
-
<h3>Public Class Methods</h3>
|
|
499
|
+
<h3 id="public-class-untitled-methods"><a href="#public-class-untitled-methods">Public Class Methods</a></h3>
|
|
107
500
|
</header>
|
|
108
501
|
|
|
109
|
-
|
|
502
|
+
|
|
503
|
+
<div id="method-c-service" class="method-detail anchor-link ">
|
|
110
504
|
<div class="method-header">
|
|
111
|
-
<div class="method-heading">
|
|
112
|
-
|
|
113
|
-
class="method-
|
|
114
|
-
|
|
505
|
+
<div class="method-heading-group">
|
|
506
|
+
|
|
507
|
+
<div class="method-heading">
|
|
508
|
+
<a href="#method-c-service" title="Link to this method">
|
|
509
|
+
<span class="method-name">service</span>
|
|
510
|
+
<span class="method-args">(token)</span>
|
|
511
|
+
</a>
|
|
512
|
+
</div>
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
|
|
115
516
|
</div>
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
<div class="method-controls">
|
|
520
|
+
<details class="method-source-toggle">
|
|
521
|
+
<summary><span class="method-source-icon" aria-hidden="true">{}</span> Source</summary>
|
|
522
|
+
</details>
|
|
523
|
+
</div>
|
|
524
|
+
|
|
116
525
|
</div>
|
|
117
526
|
|
|
527
|
+
|
|
528
|
+
<div class="method-source-code" id="service-source">
|
|
529
|
+
<pre class="ruby"><span class="ruby-comment"># File lib/ldbws.rb, line 10</span>
|
|
530
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">service</span>(<span class="ruby-identifier">token</span>)
|
|
531
|
+
<span class="ruby-constant">Service</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">token</span>)
|
|
532
|
+
<span class="ruby-keyword">end</span></pre>
|
|
533
|
+
</div>
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
|
|
118
537
|
<div class="method-description">
|
|
538
|
+
|
|
539
|
+
|
|
119
540
|
<p>Helper method that returns an instance of [<a href="Ldbws/Service.html"><code>Service</code></a>].</p>
|
|
120
541
|
|
|
121
|
-
<
|
|
122
|
-
<
|
|
542
|
+
<span id="method-c-service-label-Parameters" class="legacy-anchor"></span>
|
|
543
|
+
<h3 id="method-c-service-parameters"><a href="#method-c-service-parameters">Parameters</a></h3>
|
|
544
|
+
<dl class="rdoc-list note-list"><dt>token</dt>
|
|
123
545
|
<dd>
|
|
124
546
|
<p>the API token used to connect to the service</p>
|
|
125
547
|
</dd></dl>
|
|
126
548
|
|
|
127
|
-
|
|
128
|
-
<pre><span class="ruby-comment"># File lib/ldbws.rb, line 10</span>
|
|
129
|
-
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">service</span>(<span class="ruby-identifier">token</span>)
|
|
130
|
-
<span class="ruby-constant">Service</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">token</span>)
|
|
131
|
-
<span class="ruby-keyword">end</span></pre>
|
|
132
|
-
</div>
|
|
549
|
+
|
|
133
550
|
</div>
|
|
134
551
|
|
|
135
552
|
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
|
|
136
556
|
</div>
|
|
137
557
|
|
|
558
|
+
|
|
138
559
|
</section>
|
|
139
560
|
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
|
|
140
570
|
</section>
|
|
571
|
+
|
|
141
572
|
</main>
|
|
142
573
|
|
|
574
|
+
<aside id="table-of-contents" class="table-of-contents" role="complementary" aria-label="Table of Contents">
|
|
575
|
+
<div class="toc-sticky">
|
|
576
|
+
<h3 class="toc-heading">On This Page</h3>
|
|
577
|
+
<nav class="toc-nav" id="toc-nav" aria-label="Page sections">
|
|
578
|
+
<!-- Generated by JavaScript based on page headings -->
|
|
579
|
+
</nav>
|
|
580
|
+
</div>
|
|
581
|
+
</aside>
|
|
582
|
+
|
|
143
583
|
|
|
144
|
-
<footer
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
<
|
|
584
|
+
<footer class="site-footer">
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
<div class="footer-bottom">
|
|
588
|
+
<p>
|
|
589
|
+
Generated by <a href="https://ruby.github.io/rdoc/">RDoc 8.1.0</a>
|
|
590
|
+
using the Aliki theme by <a href="http://st0012.dev">Stan Lo</a>
|
|
591
|
+
</p>
|
|
592
|
+
</div>
|
|
148
593
|
</footer>
|
|
149
594
|
|
|
595
|
+
</body>
|
|
596
|
+
|