Class: TokyoMetro::Api::StationFacility::Info::BarrierFree::List

Inherits:
MetaClass::Fundamental::List show all
Includes:
ClassNameLibrary::Api::StationFacility, Modules::Common::ToFactory::Seed::List
Defined in:
lib/tokyo_metro/api/station_facility/info/barrier_free/list.rb

Overview

各種施設の配列

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from MetaClass::Fundamental::List

#find_by_same_as

Class Method Details

.factory_for_seeding_this_classObject



18
19
20
# File 'lib/tokyo_metro/api/station_facility/info/barrier_free/list.rb', line 18

def self.factory_for_seeding_this_class
  factory_for_seeding_barrier_free_facilities_of_each_station
end

Instance Method Details

#seed(station_facility_info_id, indent) ⇒ Object



14
15
16
# File 'lib/tokyo_metro/api/station_facility/info/barrier_free/list.rb', line 14

def seed( station_facility_info_id , indent )
  super( station_facility_info_id , indent: indent + 1 , not_on_the_top_layer: true )
end

#to_strf(indent = 0) ⇒ String

インスタンスの情報を整形した文字列にして返すメソッド

Parameters:

  • indent (Integer (>=0) (defaults to: 0)

    ] インデントの幅

Returns:

  • (String)


10
11
12
# File 'lib/tokyo_metro/api/station_facility/info/barrier_free/list.rb', line 10

def to_strf( indent = 0 )
  super( indent , 1 )
end