Module: TokyoMetro::Modules::Common::Info::Decision::Operator

Included in:
Api::RailwayLine::Info, Db::Decision::Operator, Static::RailwayLine::Info
Defined in:
lib/tokyo_metro/modules/common/info/decision/operator.rb

Instance Method Summary collapse

Instance Method Details

#operated_by_tokyo_metro?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/tokyo_metro/modules/common/info/decision/operator.rb', line 7

def operated_by_tokyo_metro?
  tokyo_metro?
end

#tokyo_metro?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/tokyo_metro/modules/common/info/decision/operator.rb', line 3

def tokyo_metro?
  operator == "odpt.Operator:TokyoMetro"
end