Class: TokyoMetro::Factory::BeforeSeed::Api::StationTimetable::Info::TrainTime::Info::TrainType::Pattern

Inherits:
MetaClass::Timetables::TrainType::Pattern show all
Defined in:
lib/tokyo_metro/factory/before_seed/api/station_timetable/info/train_time/info/train_type/pattern.rb

Instance Attribute Summary

Attributes inherited from MetaClass::Timetables::TrainType::Pattern

#pattern_id

Instance Method Summary collapse

Constructor Details

#initialize(*args, station_info_id) ⇒ Pattern

Returns a new instance of Pattern.



3
4
5
6
# File 'lib/tokyo_metro/factory/before_seed/api/station_timetable/info/train_time/info/train_type/pattern.rb', line 3

def initialize( *args , station_info_id )
  super( *args )
  @station_info_id = station_info_id
end

Instance Method Details

#match?(*args, station_info_id) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/tokyo_metro/factory/before_seed/api/station_timetable/info/train_time/info/train_type/pattern.rb', line 8

def match?( *args , station_info_id )
  super( *args ) and station_is?( station_info_id )
end