Class: Transilien::City

Inherits:
FakeMicroService show all
Defined in:
lib/transilien/route.rb

Constant Summary

Constants inherited from MicroService

MicroService::API_HOST, MicroService::API_URI, MicroService::Default_cache_duration

Instance Attribute Summary collapse

Attributes inherited from MicroService

#access_time, #external_code, #name, #payload

Instance Method Summary collapse

Methods inherited from FakeMicroService

http

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 Attribute Details

#codeObject

Returns the value of attribute code.



8
9
10
# File 'lib/transilien/route.rb', line 8

def code
  @code
end

Instance Method Details

#from_node(node, access_time) ⇒ Object



9
10
11
12
# File 'lib/transilien/route.rb', line 9

def from_node(node, access_time)
  item = super(node, access_time)
  item.code(node['CityCode'])
end