Class: TokyoMetro::Api::StationFacility::Info::BarrierFree::Facility::Escalator::ServiceDetail::Direction

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

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

#seed

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

#downBoolean (readonly)

下り方向のエスカレータが存在するか否か

Returns:

  • (Boolean)


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

#upBoolean (readonly)

上り方向のエスカレータが存在するか否か

Returns:

  • (Boolean)


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_classObject



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_classObject



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
  factory_for_generating_barrier_free_escalator_service_detail_direction
end