atco 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/lib/atco/stop.rb +8 -1
- data/lib/atco/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7415f66d4eafb4428737b275baca8471a43e0f03863ca2705cbebe2124312129
|
4
|
+
data.tar.gz: 27043e632b025a4084d6666c145787bb6acf53b878675ce525b2946bbd5c8d30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 210d0f52a29cc65760d3445b829430c9018ce18d429658bc5311caa8e1279af96f9fc03b0a369f8c5ea251373e2fdeea9152fc6ee964631a4ef1085bdcff1b7e
|
7
|
+
data.tar.gz: 8dad485652657476d6d00a5c1203d599cc8560091737712aef3a0728da39ffa585df94a580c7b80f5b6aaf5fb5cb5e92e157928ee5d9e415a6f33ccfacad4ab1
|
data/README.md
CHANGED
@@ -35,3 +35,9 @@ result = Atco.parse('SVRTMAO009A-20091005.cif) # an example data file in the rep
|
|
35
35
|
journies: {…}
|
36
36
|
}
|
37
37
|
```
|
38
|
+
|
39
|
+
### Author & Contributors
|
40
|
+
|
41
|
+
The `ATCO-CIF` Ruby library was originally authored by David Rice [@davidjrice](https://github.com/davidjrice) in response to an FOI request to [Translink](https://www.translink.co.uk) for there timetable data as part of an [OpenDataNI](https://admin.opendatani.gov.uk) initiative.
|
42
|
+
|
43
|
+
See [CONTRIBUTORS.md](http://github.com/davidjrice/atco/blob/master/CONTRIBUTORS.md)
|
data/lib/atco/stop.rb
CHANGED
@@ -3,7 +3,12 @@
|
|
3
3
|
module Atco
|
4
4
|
# Atco::Stop is a class to abstract ATCO-CIF Origin, Intermediate and Destination (Stop) records.
|
5
5
|
class Stop
|
6
|
-
attr_accessor :bay_number,
|
6
|
+
attr_accessor :bay_number,
|
7
|
+
:location,
|
8
|
+
:timing_point_indicator,
|
9
|
+
:fare_stage_indicator,
|
10
|
+
:published_arrival_time,
|
11
|
+
:published_departure_time,
|
7
12
|
:record_identity
|
8
13
|
|
9
14
|
def origin?
|
@@ -23,6 +28,7 @@ module Atco
|
|
23
28
|
@location = data[:location]
|
24
29
|
@timing_point_indicator = data[:timing_point_indicator]
|
25
30
|
@fare_stage_indicator = data[:fare_stage_indicator]
|
31
|
+
@published_arrival_time = data[:published_arrival_time]
|
26
32
|
@published_departure_time = data[:published_departure_time]
|
27
33
|
@record_identity = data[:record_identity]
|
28
34
|
end
|
@@ -31,6 +37,7 @@ module Atco
|
|
31
37
|
{
|
32
38
|
record_identity: @record_identity,
|
33
39
|
location: @location,
|
40
|
+
published_arrival_time: @published_arrival_time,
|
34
41
|
published_departure_time: @published_departure_time,
|
35
42
|
timing_point_indicator: @timing_point_indicator,
|
36
43
|
fare_stage_indicator: @fare_stage_indicator,
|
data/lib/atco/version.rb
CHANGED