Class: TokyoMetro::Api::StationFacility::Info::BarrierFree::ServiceDetail::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/service_detail/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



22
23
24
# File 'lib/tokyo_metro/api/station_facility/info/barrier_free/service_detail/list.rb', line 22

def self.factory_for_seeding_this_class
  factory_for_seeding_barrier_free_facility_service_detail_list
end

Instance Method Details

#seed(barrier_free_facility_id) ⇒ Object



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

def seed( barrier_free_facility_id )
  raise unless barrier_free_facility_id.integer?
  super( barrier_free_facility_id , not_on_the_top_layer: true , no_display: true , display_number: false )
end

#to_sString Also known as: to_strf

インスタンスの情報を文字列に変換するメソッド

Returns:

  • (String)


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

def to_s
  self.map( &:to_s ).join("")
end