class TokyoMetro::Factory::BeforeSeed::Api::TrainTimetable::Info::TrainType::Pattern

Public Class Methods

new( *args , starting_station_info_id ) click to toggle source
# File lib/tokyo_metro/factory/before_seed/api/train_timetable/info/train_type/pattern.rb, line 3
def initialize( *args , starting_station_info_id )
  super( *args )
  @starting_station_info_id = starting_station_info_id
end

Public Instance Methods

match?( *args , starting_station_info_id ) click to toggle source
# File lib/tokyo_metro/factory/before_seed/api/train_timetable/info/train_type/pattern.rb, line 8
def match?( *args , starting_station_info_id )
  super( *args ) and starting_station_is?( starting_station_info_id )
end

Private Instance Methods

starting_station_is?( starting_station_info_id ) click to toggle source
# File lib/tokyo_metro/factory/before_seed/api/train_timetable/info/train_type/pattern.rb, line 14
def starting_station_is?( starting_station_info_id )
  @starting_station_info_id == starting_station_info_id
end