Class: TokyoMetro::Api::StationFacility::Info::BarrierFree::Facility::Escalator::ServiceDetail::Direction
- Inherits:
-
Object
- Object
- TokyoMetro::Api::StationFacility::Info::BarrierFree::Facility::Escalator::ServiceDetail::Direction
- Includes:
- ClassNameLibrary::Api::StationFacility, Modules::Common::Info::StationFacility::BarrierFree::Escalator::ServiceDetail::Direction, Modules::Common::ToFactory::Generate::Info, Modules::Common::ToFactory::Seed::Info
- Defined in:
- lib/tokyo_metro/api/station_facility/info/barrier_free/facility/escalator/service_detail/direction.rb
Overview
エスカレータの方向を扱うクラス
Instance Attribute Summary collapse
-
#down ⇒ Boolean
readonly
下り方向のエスカレータが存在するか否か.
-
#up ⇒ Boolean
readonly
上り方向のエスカレータが存在するか否か.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(up, down) ⇒ Direction
constructor
A new instance of Direction.
Methods included from Modules::Common::Info::StationFacility::BarrierFree::Escalator::ServiceDetail::Direction
#attribute, #both, #only_down, #only_up, #to_a, #to_h, #to_s
Methods included from Modules::Common::ToFactory::Seed::Info
Constructor Details
#initialize(up, down) ⇒ Direction
Returns a new instance of Direction.
10 11 12 13 |
# File 'lib/tokyo_metro/api/station_facility/info/barrier_free/facility/escalator/service_detail/direction.rb', line 10 def initialize( up , down ) @up = up @down = down end |
Instance Attribute Details
#down ⇒ Boolean (readonly)
下り方向のエスカレータが存在するか否か
21 22 23 |
# File 'lib/tokyo_metro/api/station_facility/info/barrier_free/facility/escalator/service_detail/direction.rb', line 21 def down @down end |
#up ⇒ Boolean (readonly)
上り方向のエスカレータが存在するか否か
17 18 19 |
# File 'lib/tokyo_metro/api/station_facility/info/barrier_free/facility/escalator/service_detail/direction.rb', line 17 def up @up end |
Class Method Details
.factory_for_seeding_this_class ⇒ Object
27 28 29 |
# File 'lib/tokyo_metro/api/station_facility/info/barrier_free/facility/escalator/service_detail/direction.rb', line 27 def self.factory_for_seeding_this_class factory_for_seeding_escalator_service_detail_direction end |
.factory_for_this_class ⇒ Object
23 24 25 |
# File 'lib/tokyo_metro/api/station_facility/info/barrier_free/facility/escalator/service_detail/direction.rb', line 23 def self.factory_for_this_class end |