Sha256: 20d3897580cc8840a53088535dbf1247e8ff3bf727b455ba42aace7e9f8d1416
Contents?: true
Size: 624 Bytes
Versions: 1
Compression:
Stored size: 624 Bytes
Contents
class TokyoMetro::Api::TrainTimetable::Info::StationTime::Info::TrainRelation::MetaClass::Info include ::TokyoMetro::ClassNameLibrary::Api::TrainTimetable include ::TokyoMetro::ClassNameLibrary::Api::StationTrainTime::Db include ::TokyoMetro::Modules::Common::ToFactory::Seed::Info def initialize( same_as , cars = :all ) @same_as = same_as @cars = cars end attr_reader :cars attr_reader :same_as def in_api train_timetable = ::TokyoMetro::Api.train_timetables.find { | item | item.same_as?( @same_as ) } raise "Error" unless train_timetable.present? return train_timetable end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tokyo_metro-0.10.1 | lib/tokyo_metro/api/train_timetable/info/station_time/info/train_relation/meta_class/info.rb |