Class: TokyoMetro::Api::TrainTimetable::List
- Inherits:
-
MetaClass::NotRealTime::List
- Object
- Array
- MetaClass::Fundamental::List
- MetaClass::NotRealTime::List
- TokyoMetro::Api::TrainTimetable::List
- Includes:
- ClassNameLibrary::Api::TrainTimetable, Modules::Api::List::Selection::RailwayLines, Modules::Common::ToFactory::Seed::List
- Defined in:
- lib/tokyo_metro/api/train_timetable/list.rb
Overview
列車別の時刻表の情報の配列
Instance Method Summary collapse
Methods included from Modules::Api::List::Selection::RailwayLines
#chiyoda_including_branch, #marunouchi_including_branch, #namboku_or_toei_mita, #yurakucho_or_fukutoshin
Methods inherited from MetaClass::Fundamental::List
Instance Method Details
#seed ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/tokyo_metro/api/train_timetable/list.rb', line 8 def seed super( ::Operator.all , ::RailwayLine.all , ::Station::Info.all , ::RailwayDirection.all , ::TrainOwner.all , display_number: true ) end |
#stations ⇒ Object
27 28 29 |
# File 'lib/tokyo_metro/api/train_timetable/list.rb', line 27 def stations self.map( &:stations ).flatten.sort.uniq end |