Class: TokyoMetro::Api::Station::Info::Exit::List

Inherits:
Common::List show all
Defined in:
lib/tokyo_metro/api/station/info/exit/list.rb

Overview

駅出入口を表すオブジェクトへのリンクの配列

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Common::List

#seed, #to_strf

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

#seed

Methods inherited from MetaClass::Fundamental::List

#find_by_same_as, #to_strf

Class Method Details

.factory_for_seeding_this_classObject



8
9
10
# File 'lib/tokyo_metro/api/station/info/exit/list.rb', line 8

def self.factory_for_seeding_this_class
  factory_for_seeding_exits_of_each_station
end

Instance Method Details

#include_info_of?(id_urn) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/tokyo_metro/api/station/info/exit/list.rb', line 4

def include_info_of?( id_urn )
  self.any? { | item | item.point == id_urn }
end