class TokyoMetro::Api::StationFacility::Info::BarrierFree::Facility::Escalator::ServiceDetail::Info

エスカレータの詳細情報を扱うクラス

Attributes

direction[R]

@return [Direction] エスカレータの方向

Public Class Methods

factory_for_seeding_this_class() click to toggle source
# File lib/tokyo_metro/api/station_facility/info/barrier_free/facility/escalator/service_detail/info.rb, line 36
def self.factory_for_seeding_this_class
  factory_for_seeding_escalator_service_detail_info
end
factory_for_this_class() click to toggle source
# File lib/tokyo_metro/api/station_facility/info/barrier_free/facility/escalator/service_detail/info.rb, line 32
def self.factory_for_this_class
  factory_for_generating_barrier_free_escalator_service_detail_from_hash
end
new( service_start_time , service_end_time , operation_day , direction ) click to toggle source
# File lib/tokyo_metro/api/station_facility/info/barrier_free/facility/escalator/service_detail/info.rb, line 6
def initialize( service_start_time , service_end_time , operation_day , direction )
  super( service_start_time , service_end_time , operation_day )
  @direction = direction
end

Public Instance Methods

escalator_directions() click to toggle source

エスカレーターの方向の情報を返すメソッド @return [::Array <Boolean>]

# File lib/tokyo_metro/api/station_facility/info/barrier_free/facility/escalator/service_detail/info.rb, line 28
def escalator_directions
  @direction.to_a
end
to_a() click to toggle source
# File lib/tokyo_metro/api/station_facility/info/barrier_free/facility/escalator/service_detail/info.rb, line 22
def to_a
  super + [ @direction ]
end
to_s( indent = 0 ) click to toggle source
# File lib/tokyo_metro/api/station_facility/info/barrier_free/facility/escalator/service_detail/info.rb, line 14
def to_s( indent = 0 )
  if @direction.to_s.blank?
    super + " " + "☆☆☆☆"
  else
    super + " " + @direction.to_s
  end
end