Class: TokyoMetro::Api::StationFacility::List

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

Overview

各駅の駅施設情報の配列

Instance Method Summary collapse

Methods included from Modules::Common::ToFactory::Seed::Group

#seed

Methods inherited from MetaClass::Fundamental::List

#find_by_same_as

Instance Method Details

#barrier_free_facilitiesObject



7
8
9
# File 'lib/tokyo_metro/api/station_facility/list.rb', line 7

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

#seed_barrier_free_facilitiesObject



18
19
20
21
22
23
24
25
26
# File 'lib/tokyo_metro/api/station_facility/list.rb', line 18

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

#seed_platform_infosObject



28
29
30
31
32
33
34
35
36
# File 'lib/tokyo_metro/api/station_facility/list.rb', line 28

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

#to_strf(indent = 0) ⇒ String

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

Parameters:

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

    ] インデントの幅

Returns:

  • (String)


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

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