module TokyoMetro::Modules::Api::Info::Decision::TerminalStation

行先に関するメソッドを提供するモジュール @note 判定にはインスタンス変数 @terminal_station を利用する。

Public Instance Methods

bound_for?( *list_of_train_terminal_station , compared: @terminal_station ) click to toggle source

列車の行先を判定するメソッド @param list_of_train_terminal_station [::Array <::String>] 判定する駅名のリスト @return [Boolean] @note 複数指定した場合は、指定された【いずれか】の駅を行先とする列車を取得する。

# File lib/tokyo_metro/modules/api/info/decision/terminal_station.rb, line 11
def bound_for?( *list_of_train_terminal_station , compared: @terminal_station )
  raise if list_of_train_terminal_station.empty?
  super( *list_of_train_terminal_station , compared )
end
is_bound_for?( *list_of_train_terminal_station , compared: @terminal_station )
Alias for: bound_for?
is_terminating?( *list_of_train_terminal_station , compared: @terminal_station )
Alias for: bound_for?
terminate?( *list_of_train_terminal_station , compared: @terminal_station )
Alias for: bound_for?