Class: TokyoMetro::Api::TrainTimetable::List

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

#find_by_same_as, #to_strf

Instance Method Details

#seedObject



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

#stationsObject



27
28
29
# File 'lib/tokyo_metro/api/train_timetable/list.rb', line 27

def stations
  self.map( &:stations ).flatten.sort.uniq
end