Class: Transilien::Line
Constant Summary
Constants inherited
from MicroService
MicroService::API_HOST, MicroService::API_URI, MicroService::Default_cache_duration
Instance Attribute Summary
Attributes inherited from MicroService
#access_time, #external_code, #name, #payload
Instance Method Summary
collapse
action, action_component, action_instance_xpath, action_param, add_filters, cache_it, cache_keys, errors, filters, filters=, find, find_from_full_query_cache, find_from_query_caches, from_node, http, params, #to_s
Instance Method Details
#backward ⇒ Object
I don’t have a clue what is about…
15
16
17
|
# File 'lib/transilien/line.rb', line 15
def backward
payload.at('Backward')
end
|
#code ⇒ Object
19
20
21
|
# File 'lib/transilien/line.rb', line 19
def code
payload['LineCode']
end
|
#forward ⇒ Object
I don’t have a clue what is about…
10
11
12
|
# File 'lib/transilien/line.rb', line 10
def forward
payload.at('Forward')
end
|
#mode_type ⇒ Object
2
3
4
|
# File 'lib/transilien/line.rb', line 2
def mode_type
@mode_type ||= Transilien::ModeType.from_node(payload.at('ModeType'), access_time)
end
|
#network ⇒ Object
5
6
7
|
# File 'lib/transilien/line.rb', line 5
def network
@network ||= Transilien::Network.from_node(payload.at('Network'), access_time)
end
|
#routes ⇒ Object
31
32
33
|
# File 'lib/transilien/line.rb', line 31
def routes
@routes ||= Transilien::Route.find(line_external_code: external_code)
end
|
#stop_areas ⇒ Object
27
28
29
|
# File 'lib/transilien/line.rb', line 27
def stop_areas
@stop_areas ||= Transilien::StopArea.find(line_external_code: external_code)
end
|
#stop_points ⇒ Object
23
24
25
|
# File 'lib/transilien/line.rb', line 23
def stop_points
@stop_points ||= Transilien::StopPoint.find(line_external_code: external_code)
end
|