Sha256: b2f8b8589023275e990f6003d59361eea8dafcdda5af95931c2e94323a787863

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

# 各駅の駅施設情報の配列
class TokyoMetro::Api::StationFacility::List < TokyoMetro::Api::MetaClass::NotRealTime::List

  include ::TokyoMetro::ClassNameLibrary::Api::StationFacility
  include ::TokyoMetro::Modules::Common::ToFactory::Seed::List

  def barrier_free_facilities
    self.class.barrier_free_list_class.new( self.map( &:barrier_free_facilities ).flatten )
  end

  # インスタンスの情報を整形した文字列にして返すメソッド
  # @param indent [Integer (>=0)] インデントの幅
  # @return [String]
  def to_strf( indent = 0 )
    super( indent , 2 )
  end

  def seed_barrier_free_facilities
    __seed__(
      factory_name: :factory_for_seeding_barrier_free_facilities ,
      method_name: __method__ ,
      indent: 0 ,
      not_on_the_top_layer: false ,
      display_number: true
    )
  end

  def seed_platform_infos
    __seed__(
      factory_name: :factory_for_seeding_platform_infos ,
      method_name: __method__ ,
      indent: 0 ,
      not_on_the_top_layer: false ,
      display_number: true
    )
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tokyo_metro-0.10.1 lib/tokyo_metro/api/station_facility/list.rb