Sha256: 35f1c33105a3b50ca6816421efc8398e6fd2d8bc1dd30099687045f24221b089
Contents?: true
Size: 673 Bytes
Versions: 1
Compression:
Stored size: 673 Bytes
Contents
# 各路線の列車運行情報を格納する配列 class TokyoMetro::Api::TrainOperation::List < TokyoMetro::Api::MetaClass::RealTime::List include ::TokyoMetro::ClassNameLibrary::Api::TrainOperation # 各路線の情報を路線の建設順に並べ替えるメソッド # @return [List] def sort_by_railway_line_order self.class.new( self.sort_by { | line_info | ::TokyoMetro::Static.railway_lines[ line_info.railway_line ].order } ) end def railway_lines self.map( &:railway_line ) end alias :railway_lines_same_as :railway_lines def update!( http_client , time: ::TokyoMetro.time_now ) super( http_client , time: time ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tokyo_metro-0.10.1 | lib/tokyo_metro/api/train_operation/list.rb |