Sha256: ebcf6595adc63c834c8437f0a1cd4c0368933218db3abfd0a777492484c9a3bc

Contents?: true

Size: 827 Bytes

Versions: 1

Compression:

Stored size: 827 Bytes

Contents

# 施設の詳細情報の配列を扱うクラス
class TokyoMetro::Api::StationFacility::Info::BarrierFree::ServiceDetail::List < TokyoMetro::Api::MetaClass::Fundamental::List

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

  # インスタンスの情報を文字列に変換するメソッド
  # @return [String]
  def to_s
    self.map( &:to_s ).join("/")
  end

  alias :to_strf :to_s

  undef :find_by_same_as

  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

  def self.factory_for_seeding_this_class
    factory_for_seeding_barrier_free_facility_service_detail_list
  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/info/barrier_free/service_detail/list.rb