Module: TokyoMetro::ClassNameLibrary::Api::StationTimetable::ClassMethods
- Defined in:
- lib/tokyo_metro/class_name_library/api/station_timetable.rb
クラスメソッド (1) - メタデータ collapse
-
#context ⇒ String
JSON-LD 仕様に基づく context のURL - URL.
-
#rdf_type ⇒ String
クラス指定 - odpt:StationTimetable.
生成するクラスの情報 collapse
- #fundamental_info_class ⇒ Object
- #fundamental_info_separeted_info ⇒ Object
- #fundamental_info_separeted_list ⇒ Object
- #fundamental_list_class ⇒ Object
-
#info_class ⇒ Const ( ::TokyoMetro::Api::StationTimetable::Info )
配列の要素となるインスタンスのクラス.
-
#list_class ⇒ Const ( ::TokyoMetro::Api::StationTimetable::List )
配列のクラス.
-
#toplevel_namespace ⇒ Const ( ::TokyoMetro::Api::StationTimetable )
トップレベルのクラス.
- #train_info_class ⇒ Object
- #train_info_note_list_class ⇒ Object
- #train_list_class ⇒ Object
Factory Pattern のクラスの情報 collapse
- #db_instance_class ⇒ Object
- #db_instance_class_of_fundamental_separated_info ⇒ Object
-
#factory_for_generating_from_hash ⇒ Const ( ::TokyoMetro::Factory::Generate::Api::StationTimetable::Info )
JSON をパースして得られた配列の要素である Hash からインスタンスを作成するメソッドための Factory Pattern クラス.
-
#factory_for_generating_from_saved_file ⇒ Const ( ::TokyoMetro::Factory::Generate::Api::StationTimetable::List )
保存済みの情報を処理しインスタンスを復元するための Factory Pattern クラス.
- #factory_for_generating_fundamental_info_from_hash ⇒ Object
- #factory_for_generating_train_from_hash ⇒ Object
-
#factory_for_getting ⇒ Const ( ::TokyoMetro::Factory::Get::Api::DataSearch::StationTimetable )
API からデータを取得するための Factory Pattern クラス.
-
#factory_for_saving_datas_of_each_group ⇒ Const ( ::TokyoMetro::Factory::Save::Api::StationTimetable::Group )
グループ化されたデータを保存するための Factory Pattern クラス.
-
#factory_for_saving_to_each_file ⇒ Const ( ::TokyoMetro::Factory::Save::Api::StationTimetable::EachFile )
API から取得したデータを保存するための Factory Pattern クラス.
- #factory_for_seeding_fundamental_info ⇒ Object
- #factory_for_seeding_fundamental_info_separeted_info ⇒ Object
- #factory_for_seeding_fundamental_info_separeted_list ⇒ Object
- #factory_for_seeding_fundamental_list ⇒ Object
- #factory_for_seeding_info ⇒ Object
- #factory_for_seeding_list ⇒ Object
- #factory_for_seeding_station_train_time ⇒ Object
- #factory_for_seeding_train_times ⇒ Object
- #factory_for_seeding_train_times_in_each_station ⇒ Object
- #factory_for_train_type ⇒ Object
- #file_info_class_for_saving ⇒ Object
-
#key_name_for_determining_dir_when_saving_grouped_infos_and_instance_is_not_generated ⇒ String or Symbol
API の情報(ハッシュの配列)の各成分をディレクトリ分けするときに使用するキーの設定.
- #list_class_for_saving_grouped_infos ⇒ Object
-
#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
#context ⇒ String
JSON-LD 仕様に基づく context のURL - URL
19 20 21 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 19 def context "http://vocab.tokyometroapp.jp/context_odpt_StationTimetable.jsonld" end |
#db_instance_class ⇒ Object
177 178 179 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 177 def db_instance_class ::StationTimetable end |
#db_instance_class_of_fundamental_separated_info ⇒ Object
181 182 183 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 181 def db_instance_class_of_fundamental_separated_info ::StationTimetableFundamentalInfo end |
#factory_for_generating_from_hash ⇒ Const ( ::TokyoMetro::Factory::Generate::Api::StationTimetable::Info )
JSON をパースして得られた配列の要素である Hash からインスタンスを作成するメソッドための Factory Pattern クラス
101 102 103 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 101 def ::TokyoMetro::Factory::Generate::Api::StationTimetable::Info end |
#factory_for_generating_from_saved_file ⇒ Const ( ::TokyoMetro::Factory::Generate::Api::StationTimetable::List )
保存済みの情報を処理しインスタンスを復元するための Factory Pattern クラス
115 116 117 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 115 def ::TokyoMetro::Factory::Generate::Api::StationTimetable::List end |
#factory_for_generating_fundamental_info_from_hash ⇒ Object
105 106 107 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 105 def ::TokyoMetro::Factory::Generate::Api::StationTimetable::Info::Fundamental::Info end |
#factory_for_generating_train_from_hash ⇒ Object
109 110 111 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 109 def ::TokyoMetro::Factory::Generate::Api::StationTimetable::Info::TrainTime::Info end |
#factory_for_getting ⇒ Const ( ::TokyoMetro::Factory::Get::Api::DataSearch::StationTimetable )
API からデータを取得するための Factory Pattern クラス
75 76 77 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 75 def factory_for_getting ::TokyoMetro::Factory::Get::Api::DataSearch::StationTimetable end |
#factory_for_saving_datas_of_each_group ⇒ Const ( ::TokyoMetro::Factory::Save::Api::StationTimetable::Group )
グループ化されたデータを保存するための Factory Pattern クラス
87 88 89 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 87 def factory_for_saving_datas_of_each_group ::TokyoMetro::Factory::Save::Api::StationTimetable::Group end |
#factory_for_saving_to_each_file ⇒ Const ( ::TokyoMetro::Factory::Save::Api::StationTimetable::EachFile )
API から取得したデータを保存するための Factory Pattern クラス
81 82 83 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 81 def factory_for_saving_to_each_file ::TokyoMetro::Factory::Save::Api::StationTimetable::EachFile end |
#factory_for_seeding_fundamental_info ⇒ Object
131 132 133 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 131 def factory_for_seeding_fundamental_info ::TokyoMetro::Factory::Seed::Api::StationTimetable::Info::Fundamental::Info end |
#factory_for_seeding_fundamental_info_separeted_info ⇒ Object
139 140 141 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 139 def factory_for_seeding_fundamental_info_separeted_info ::TokyoMetro::Factory::Seed::Api::StationTimetable::Info::Fundamental::Info::Separated::Info end |
#factory_for_seeding_fundamental_info_separeted_list ⇒ Object
135 136 137 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 135 def factory_for_seeding_fundamental_info_separeted_list ::TokyoMetro::Factory::Seed::Api::StationTimetable::Info::Fundamental::Info::Separated::List end |
#factory_for_seeding_fundamental_list ⇒ Object
127 128 129 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 127 def factory_for_seeding_fundamental_list ::TokyoMetro::Factory::Seed::Api::StationTimetable::Info::Fundamental::List end |
#factory_for_seeding_info ⇒ Object
123 124 125 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 123 def factory_for_seeding_info ::TokyoMetro::Factory::Seed::Api::StationTimetable::Info end |
#factory_for_seeding_list ⇒ Object
119 120 121 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 119 def factory_for_seeding_list ::TokyoMetro::Factory::Seed::Api::StationTimetable::List end |
#factory_for_seeding_station_train_time ⇒ Object
151 152 153 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 151 def factory_for_seeding_station_train_time ::TokyoMetro::Factory::Seed::Api::StationTimetable::Info::TrainTime::Info end |
#factory_for_seeding_train_times ⇒ Object
143 144 145 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 143 def factory_for_seeding_train_times ::TokyoMetro::Factory::Seed::Api::StationTimetable::List::TrainTimes end |
#factory_for_seeding_train_times_in_each_station ⇒ Object
147 148 149 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 147 def factory_for_seeding_train_times_in_each_station ::TokyoMetro::Factory::Seed::Api::StationTimetable::Info::TrainTime::List end |
#factory_for_train_type ⇒ Object
155 156 157 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 155 def factory_for_train_type ::TokyoMetro::Factory::BeforeSeed::Api::StationTimetable::Info::TrainTime::Info::TrainType end |
#file_info_class_for_saving ⇒ Object
95 96 97 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 95 def file_info_class_for_saving ::TokyoMetro::Factory::Save::Api::StationTimetable::Group::FileInfo end |
#fundamental_info_class ⇒ Object
59 60 61 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 59 def fundamental_info_class ::TokyoMetro::Api::StationTimetable::Info::Fundamental::Info end |
#fundamental_info_separeted_info ⇒ Object
67 68 69 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 67 def fundamental_info_separeted_info ::TokyoMetro::Api::StationTimetable::Info::Fundamental::Info::Separated::Info end |
#fundamental_info_separeted_list ⇒ Object
63 64 65 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 63 def fundamental_info_separeted_list ::TokyoMetro::Api::StationTimetable::Info::Fundamental::Info::Separated::List end |
#fundamental_list_class ⇒ Object
55 56 57 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 55 def fundamental_list_class ::TokyoMetro::Api::StationTimetable::Info::Fundamental::List end |
#info_class ⇒ Const ( ::TokyoMetro::Api::StationTimetable::Info )
配列の要素となるインスタンスのクラス
39 40 41 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 39 def info_class ::TokyoMetro::Api::StationTimetable::Info end |
#key_name_for_determining_dir_when_saving_grouped_infos_and_instance_is_not_generated ⇒ String or Symbol
API の情報(ハッシュの配列)の各成分をディレクトリ分けするときに使用するキーの設定
167 168 169 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 167 def key_name_for_determining_dir_when_saving_grouped_infos_and_instance_is_not_generated "owl:sameAs" end |
#list_class ⇒ Const ( ::TokyoMetro::Api::StationTimetable::List )
配列のクラス
33 34 35 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 33 def list_class ::TokyoMetro::Api::StationTimetable::List end |
#list_class_for_saving_grouped_infos ⇒ Object
91 92 93 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 91 def list_class_for_saving_grouped_infos ::TokyoMetro::Factory::Save::Api::StationTimetable::Group::List end |
#method_name_for_determining_dir_when_saving_grouped_infos_and_instance_is_generated ⇒ String or Symbol
API の情報(generate_instance が true のときの、インスタンスの配列)の各成分をディレクトリ分けするときに使用するキーの設定
161 162 163 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 161 def method_name_for_determining_dir_when_saving_grouped_infos_and_instance_is_generated :same_as end |
#rdf_type ⇒ String
クラス指定 - odpt:StationTimetable
13 14 15 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 13 def rdf_type "odpt:StationTimetable" end |
#regexp_indicating_deleted_part_of_value_and_used_when_determine_saved_file_name ⇒ Regexp
ファイル名を作成する際に削除する部分を示す正規表現
173 174 175 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 173 def regexp_indicating_deleted_part_of_value_and_used_when_determine_saved_file_name /\Aodpt\.StationTimetable\:/ end |
#toplevel_namespace ⇒ Const ( ::TokyoMetro::Api::StationTimetable )
トップレベルのクラス
27 28 29 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 27 def toplevel_namespace ::TokyoMetro::Api::StationTimetable end |
#train_info_class ⇒ Object
47 48 49 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 47 def train_info_class ::TokyoMetro::Api::StationTimetable::Info::TrainTime::Info end |
#train_info_note_list_class ⇒ Object
51 52 53 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 51 def train_info_note_list_class ::TokyoMetro::Api::StationTimetable::Info::TrainTime::Info::Note::List end |
#train_list_class ⇒ Object
43 44 45 |
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 43 def train_list_class ::TokyoMetro::Api::StationTimetable::Info::TrainTime::List end |