Class: Transilien::Network
- Inherits:
-
MicroService
- Object
- MicroService
- Transilien::Network
- Defined in:
- lib/transilien/network.rb
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
Methods inherited from MicroService
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
#codes ⇒ Object
6 7 8 |
# File 'lib/transilien/network.rb', line 6 def codes @codes ||= lines.map(&:code).uniq.sort end |
#lines ⇒ Object
2 3 4 |
# File 'lib/transilien/network.rb', line 2 def lines @lines ||= Transilien::Line.find(network_external_code: external_code) end |