Module: TokyoMetro::ClassNameLibrary::Api::Station::ClassMethods
- Defined in:
- lib/tokyo_metro/class_name_library/api/station.rb
クラスメソッド (1) - メタデータ collapse
-
#context ⇒ String
JSON-LD 仕様に基づく context のURL - URL.
-
#rdf_type ⇒ String
クラス指定 - odpt:Station.
生成するクラスの情報 collapse
- #connecting_railway_line_info_class ⇒ Object
- #connecting_railway_line_list_class ⇒ Object
- #exit_info_class ⇒ Object
- #exit_list_class ⇒ Object
-
#info_class ⇒ Const ( ::TokyoMetro::Api::Station::Info )
配列の要素となるインスタンスのクラス.
- #link_to_passenger_survey_info_class ⇒ Object
- #link_to_passenger_survey_list_class ⇒ Object
-
#list_class ⇒ Const ( ::TokyoMetro::Api::Station::List )
配列のクラス.
-
#toplevel_namespace ⇒ Const ( ::TokyoMetro::Api::Station )
トップレベルのクラス.
Factory Pattern のクラスの情報 collapse
- #factory_for_generating_connecting_railway_from_string ⇒ Object
- #factory_for_generating_exit_from_string ⇒ Object
-
#factory_for_generating_from_hash ⇒ Const ( ::TokyoMetro::Factory::Generate::Api::Station::Info )
JSON をパースして得られた配列の要素である Hash からインスタンスを作成するメソッドための Factory Pattern クラス.
-
#factory_for_generating_from_saved_file ⇒ Const ( ::TokyoMetro::Factory::Generate::Api::Station::List )
保存済みの情報を処理しインスタンスを復元するための Factory Pattern クラス.
- #factory_for_generating_link_to_passenger_survey_from_string ⇒ Object
-
#factory_for_getting ⇒ Const ( ::TokyoMetro::Factory::Get::Api::DataSearch::Station )
API からデータを取得するための Factory Pattern クラス(データ検索 API).
-
#factory_for_getting_geo ⇒ Const ( ::TokyoMetro::Factory::Get::Api::Geo::Station )
API からデータを取得するための Factory Pattern クラス(地物検索 API).
-
#factory_for_saving_datas_of_each_group ⇒ Const ( ::TokyoMetro::Factory::Save::Api::Station::Group )
グループ化されたデータを保存するための Factory Pattern クラス.
-
#factory_for_saving_to_each_file ⇒ Const ( ::TokyoMetro::Factory::Save::Api::Station::EachFile )
API から取得したデータを保存するための Factory Pattern クラス.
- #file_info_class_for_saving ⇒ Object
- #list_class_for_saving_grouped_infos ⇒ Object
DB collapse
- #db_instance_class ⇒ Object
- #db_instance_class_of_connecting_railway_line_info ⇒ Object
- #db_instance_class_of_exit ⇒ Object
- #db_instance_class_of_link_to_passenger_survey ⇒ Object
- #factory_for_seeding_connecting_railway_line_info ⇒ Object
- #factory_for_seeding_connecting_railway_lines ⇒ Object
- #factory_for_seeding_connecting_railway_lines_of_each_station ⇒ Object
- #factory_for_seeding_exit ⇒ Object
- #factory_for_seeding_exits ⇒ Object
- #factory_for_seeding_exits_of_each_station ⇒ Object
- #factory_for_seeding_info ⇒ Object
- #factory_for_seeding_link_to_passenger_survey ⇒ Object
- #factory_for_seeding_link_to_passenger_surveys ⇒ Object
- #factory_for_seeding_link_to_passenger_surveys_of_each_station ⇒ Object
- #factory_for_seeding_list ⇒ Object
-
#key_name_for_determining_dir_when_saving_grouped_infos_and_instance_is_not_generated ⇒ String or Symbol
API の情報(ハッシュの配列)の各成分をディレクトリ分けするときに使用するキーの設定.
-
#method_name_for_determining_dir_when_saving_grouped_infos_and_instance_is_generated ⇒ String or Symbol
API の情報(generate_instance が true のときの、インスタンスの配列)の各成分をディレクトリ分けするときに使用するキーの設定.
-
#regexp_indicating_deleted_part_of_value_and_used_when_determine_saved_file_name ⇒ Regexp
ファイル名を作成する際に削除する部分を示す正規表現.
Instance Method Details
#connecting_railway_line_info_class ⇒ Object
46 47 48 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 46 def connecting_railway_line_info_class ::TokyoMetro::Api::Station::Info::ConnectingRailwayLine::Info end |
#connecting_railway_line_list_class ⇒ Object
42 43 44 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 42 def connecting_railway_line_list_class ::TokyoMetro::Api::Station::Info::ConnectingRailwayLine::List end |
#context ⇒ String
JSON-LD 仕様に基づく context のURL - URL
18 19 20 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 18 def context "http://vocab.tokyometroapp.jp/context_odpt_Station.jsonld" end |
#db_instance_class ⇒ Object
188 189 190 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 188 def db_instance_class ::Station::Info end |
#db_instance_class_of_connecting_railway_line_info ⇒ Object
192 193 194 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 192 def db_instance_class_of_connecting_railway_line_info ::ConnectingRailwayLine::Info end |
#db_instance_class_of_exit ⇒ Object
196 197 198 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 196 def db_instance_class_of_exit ::StationPoint end |
#db_instance_class_of_link_to_passenger_survey ⇒ Object
200 201 202 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 200 def db_instance_class_of_link_to_passenger_survey ::StationPassengerSurvey end |
#exit_info_class ⇒ Object
54 55 56 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 54 def exit_info_class ::TokyoMetro::Api::Station::Info::Exit::Info end |
#exit_list_class ⇒ Object
50 51 52 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 50 def exit_list_class ::TokyoMetro::Api::Station::Info::Exit::List end |
#factory_for_generating_connecting_railway_from_string ⇒ Object
112 113 114 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 112 def ::TokyoMetro::Factory::Generate::Api::Station::Info::ConnectingRailwayLine::Info end |
#factory_for_generating_exit_from_string ⇒ Object
116 117 118 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 116 def ::TokyoMetro::Factory::Generate::Api::Station::Info::Exit::Info end |
#factory_for_generating_from_hash ⇒ Const ( ::TokyoMetro::Factory::Generate::Api::Station::Info )
JSON をパースして得られた配列の要素である Hash からインスタンスを作成するメソッドための Factory Pattern クラス
102 103 104 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 102 def ::TokyoMetro::Factory::Generate::Api::Station::Info end |
#factory_for_generating_from_saved_file ⇒ Const ( ::TokyoMetro::Factory::Generate::Api::Station::List )
保存済みの情報を処理しインスタンスを復元するための Factory Pattern クラス
108 109 110 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 108 def ::TokyoMetro::Factory::Generate::Api::Station::List end |
#factory_for_generating_link_to_passenger_survey_from_string ⇒ Object
120 121 122 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 120 def ::TokyoMetro::Factory::Generate::Api::Station::Info::LinkToPassengerSurvey::Info end |
#factory_for_getting ⇒ Const ( ::TokyoMetro::Factory::Get::Api::DataSearch::Station )
API からデータを取得するための Factory Pattern クラス(データ検索 API)
70 71 72 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 70 def factory_for_getting ::TokyoMetro::Factory::Get::Api::DataSearch::Station end |
#factory_for_getting_geo ⇒ Const ( ::TokyoMetro::Factory::Get::Api::Geo::Station )
API からデータを取得するための Factory Pattern クラス(地物検索 API)
76 77 78 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 76 def factory_for_getting_geo ::TokyoMetro::Factory::Get::Api::Geo::Station end |
#factory_for_saving_datas_of_each_group ⇒ Const ( ::TokyoMetro::Factory::Save::Api::Station::Group )
グループ化されたデータを保存するための Factory Pattern クラス
88 89 90 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 88 def factory_for_saving_datas_of_each_group ::TokyoMetro::Factory::Save::Api::Station::Group end |
#factory_for_saving_to_each_file ⇒ Const ( ::TokyoMetro::Factory::Save::Api::Station::EachFile )
API から取得したデータを保存するための Factory Pattern クラス
82 83 84 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 82 def factory_for_saving_to_each_file ::TokyoMetro::Factory::Save::Api::Station::EachFile end |
#factory_for_seeding_connecting_railway_line_info ⇒ Object
142 143 144 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 142 def factory_for_seeding_connecting_railway_line_info ::TokyoMetro::Factory::Seed::Api::Station::Info::ConnectingRailwayLine::Info end |
#factory_for_seeding_connecting_railway_lines ⇒ Object
134 135 136 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 134 def factory_for_seeding_connecting_railway_lines ::TokyoMetro::Factory::Seed::Api::Station::List::ConnectingRailwayLine end |
#factory_for_seeding_connecting_railway_lines_of_each_station ⇒ Object
138 139 140 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 138 def factory_for_seeding_connecting_railway_lines_of_each_station ::TokyoMetro::Factory::Seed::Api::Station::Info::ConnectingRailwayLine::List end |
#factory_for_seeding_exit ⇒ Object
154 155 156 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 154 def factory_for_seeding_exit ::TokyoMetro::Factory::Seed::Api::Station::Info::Exit::Info end |
#factory_for_seeding_exits ⇒ Object
146 147 148 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 146 def factory_for_seeding_exits ::TokyoMetro::Factory::Seed::Api::Station::List::Exit end |
#factory_for_seeding_exits_of_each_station ⇒ Object
150 151 152 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 150 def factory_for_seeding_exits_of_each_station ::TokyoMetro::Factory::Seed::Api::Station::Info::Exit::List end |
#factory_for_seeding_info ⇒ Object
130 131 132 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 130 def factory_for_seeding_info ::TokyoMetro::Factory::Seed::Api::Station::Info end |
#factory_for_seeding_link_to_passenger_survey ⇒ Object
166 167 168 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 166 def factory_for_seeding_link_to_passenger_survey ::TokyoMetro::Factory::Seed::Api::Station::Info::LinkToPassengerSurvey::Info end |
#factory_for_seeding_link_to_passenger_surveys ⇒ Object
158 159 160 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 158 def factory_for_seeding_link_to_passenger_surveys ::TokyoMetro::Factory::Seed::Api::Station::List::LinkToPassengerSurvey end |
#factory_for_seeding_link_to_passenger_surveys_of_each_station ⇒ Object
162 163 164 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 162 def factory_for_seeding_link_to_passenger_surveys_of_each_station ::TokyoMetro::Factory::Seed::Api::Station::Info::LinkToPassengerSurvey::List end |
#factory_for_seeding_list ⇒ Object
126 127 128 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 126 def factory_for_seeding_list ::TokyoMetro::Factory::Seed::Api::Station::List end |
#file_info_class_for_saving ⇒ Object
96 97 98 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 96 def file_info_class_for_saving ::TokyoMetro::Factory::Save::Api::Station::Group::FileInfo end |
#info_class ⇒ Const ( ::TokyoMetro::Api::Station::Info )
配列の要素となるインスタンスのクラス
38 39 40 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 38 def info_class ::TokyoMetro::Api::Station::Info end |
#key_name_for_determining_dir_when_saving_grouped_infos_and_instance_is_not_generated ⇒ String or Symbol
API の情報(ハッシュの配列)の各成分をディレクトリ分けするときに使用するキーの設定
178 179 180 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 178 def key_name_for_determining_dir_when_saving_grouped_infos_and_instance_is_not_generated "owl:sameAs" end |
#link_to_passenger_survey_info_class ⇒ Object
62 63 64 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 62 def link_to_passenger_survey_info_class ::TokyoMetro::Api::Station::Info::LinkToPassengerSurvey::Info end |
#link_to_passenger_survey_list_class ⇒ Object
58 59 60 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 58 def link_to_passenger_survey_list_class ::TokyoMetro::Api::Station::Info::LinkToPassengerSurvey::List end |
#list_class ⇒ Const ( ::TokyoMetro::Api::Station::List )
配列のクラス
32 33 34 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 32 def list_class ::TokyoMetro::Api::Station::List end |
#list_class_for_saving_grouped_infos ⇒ Object
92 93 94 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 92 def list_class_for_saving_grouped_infos ::TokyoMetro::Factory::Save::Api::Station::Group::List end |
#method_name_for_determining_dir_when_saving_grouped_infos_and_instance_is_generated ⇒ String or Symbol
API の情報(generate_instance が true のときの、インスタンスの配列)の各成分をディレクトリ分けするときに使用するキーの設定
172 173 174 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 172 def method_name_for_determining_dir_when_saving_grouped_infos_and_instance_is_generated :same_as end |
#rdf_type ⇒ String
クラス指定 - odpt:Station
12 13 14 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 12 def rdf_type "odpt:Station" end |
#regexp_indicating_deleted_part_of_value_and_used_when_determine_saved_file_name ⇒ Regexp
ファイル名を作成する際に削除する部分を示す正規表現
184 185 186 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 184 def regexp_indicating_deleted_part_of_value_and_used_when_determine_saved_file_name /\Aodpt\.Station\:/ end |
#toplevel_namespace ⇒ Const ( ::TokyoMetro::Api::Station )
トップレベルのクラス
26 27 28 |
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 26 def toplevel_namespace ::TokyoMetro::Api::Station end |