Module: TokyoMetro::ClassNameLibrary::Api::StationTimetable::ClassMethods

Defined in:
lib/tokyo_metro/class_name_library/api/station_timetable.rb

クラスメソッド (1) - メタデータ collapse

生成するクラスの情報 collapse

Factory Pattern のクラスの情報 collapse

Instance Method Details

#contextString

JSON-LD 仕様に基づく context のURL - URL

Returns:

  • (String)


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_classObject



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_infoObject



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_hashConst ( ::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 factory_for_generating_from_hash
  ::TokyoMetro::Factory::Generate::Api::StationTimetable::Info
end

#factory_for_generating_from_saved_fileConst ( ::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 factory_for_generating_from_saved_file
  ::TokyoMetro::Factory::Generate::Api::StationTimetable::List
end

#factory_for_generating_fundamental_info_from_hashObject



105
106
107
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 105

def factory_for_generating_fundamental_info_from_hash
  ::TokyoMetro::Factory::Generate::Api::StationTimetable::Info::Fundamental::Info
end

#factory_for_generating_train_from_hashObject



109
110
111
# File 'lib/tokyo_metro/class_name_library/api/station_timetable.rb', line 109

def factory_for_generating_train_from_hash
  ::TokyoMetro::Factory::Generate::Api::StationTimetable::Info::TrainTime::Info
end

#factory_for_gettingConst ( ::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_groupConst ( ::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_fileConst ( ::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_infoObject



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_infoObject



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_listObject



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_listObject



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_infoObject



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_listObject



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_timeObject



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_timesObject



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_stationObject



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_typeObject



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_savingObject



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_classObject



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_infoObject



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_listObject



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_classObject



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_classConst ( ::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_generatedString or Symbol

API の情報(ハッシュの配列)の各成分をディレクトリ分けするときに使用するキーの設定

Returns:

  • (String or Symbol)


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_classConst ( ::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_infosObject



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_generatedString or Symbol

API の情報(generate_instance が true のときの、インスタンスの配列)の各成分をディレクトリ分けするときに使用するキーの設定

Returns:

  • (String or Symbol)


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_typeString

クラス指定 - odpt:StationTimetable

Returns:

  • (String)


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_nameRegexp

ファイル名を作成する際に削除する部分を示す正規表現

Returns:

  • (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_namespaceConst ( ::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_classObject



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_classObject



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_classObject



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