Module: TokyoMetro::ClassNameLibrary::Api::TrainTimetable::ClassMethods

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

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

生成するクラスの情報 collapse

Factory Pattern のクラスの情報 collapse

Instance Method Details

#contextString

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

Returns:

  • (String)


19
20
21
22
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 19

def context
  # "http://vocab.tokyometroapp.jp/context_odpt_TrainTimetable.jsonld"
  "https://vocab.tokyometroapp.jp/context_odpt_TrainTimetable.jsonld"
end

#db_instance_classObject



162
163
164
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 162

def db_instance_class
  ::TrainTimetable
end

#factory_for_generating_from_hashConst ( ::TokyoMetro::Factory::Generate::Api::TrainTimetable::Info )

JSON をパースして得られた配列の要素である Hash からインスタンスを作成するメソッドための Factory Pattern クラス



98
99
100
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 98

def factory_for_generating_from_hash
  ::TokyoMetro::Factory::Generate::Api::TrainTimetable::Info
end

#factory_for_generating_from_saved_fileConst ( ::TokyoMetro::Factory::Generate::Api::TrainTimetable::List )

保存済みの情報を処理しインスタンスを復元するための Factory Pattern クラス



108
109
110
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 108

def factory_for_generating_from_saved_file
  ::TokyoMetro::Factory::Generate::Api::TrainTimetable::List
end

#factory_for_generating_station_time_from_hashObject



102
103
104
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 102

def factory_for_generating_station_time_from_hash
  ::TokyoMetro::Factory::Generate::Api::TrainTimetable::Info::StationTime::Info
end

#factory_for_gettingConst ( ::TokyoMetro::Factory::Get::Api::DataSearch::TrainTimetable )

API からデータを取得するための Factory Pattern クラス



72
73
74
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 72

def factory_for_getting
  ::TokyoMetro::Factory::Get::Api::DataSearch::TrainTimetable
end

#factory_for_saving_datas_of_each_groupConst ( ::TokyoMetro::Factory::Save::Api::TrainTimetable::Group )

グループ化されたデータを保存するための Factory Pattern クラス



84
85
86
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 84

def factory_for_saving_datas_of_each_group
  ::TokyoMetro::Factory::Save::Api::TrainTimetable::Group
end

#factory_for_saving_to_each_fileConst ( ::TokyoMetro::Factory::Save::Api::TrainTimetable::EachFile )

API から取得したデータを保存するための Factory Pattern クラス



78
79
80
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 78

def factory_for_saving_to_each_file
  ::TokyoMetro::Factory::Save::Api::TrainTimetable::EachFile
end

#factory_for_seeding_arrival_times_of_last_station_in_tokyo_metroObject



124
125
126
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 124

def factory_for_seeding_arrival_times_of_last_station_in_tokyo_metro
  ::TokyoMetro::Factory::Seed::Api::TrainTimetable::List::ArrivalTimes::LastStationInTokyoMetro
end

#factory_for_seeding_arrival_times_of_romance_carObject



120
121
122
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 120

def factory_for_seeding_arrival_times_of_romance_car
  ::TokyoMetro::Factory::Seed::Api::TrainTimetable::List::ArrivalTimes::RomanceCar
end

#factory_for_seeding_each_arrival_time_of_last_station_in_tokyo_metroObject



140
141
142
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 140

def factory_for_seeding_each_arrival_time_of_last_station_in_tokyo_metro
  ::TokyoMetro::Factory::Seed::Api::TrainTimetable::Info::ArrivalTimes::LastStationInTokyoMetro
end

#factory_for_seeding_each_arrival_time_of_romance_carObject



136
137
138
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 136

def factory_for_seeding_each_arrival_time_of_romance_car
  ::TokyoMetro::Factory::Seed::Api::TrainTimetable::Info::ArrivalTimes::RomanceCar
end

#factory_for_seeding_each_train_relationObject



132
133
134
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 132

def factory_for_seeding_each_train_relation
  ::TokyoMetro::Factory::Seed::Api::TrainTimetable::Info::TrainRelations
end

#factory_for_seeding_infoObject



128
129
130
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 128

def factory_for_seeding_info
  ::TokyoMetro::Factory::Seed::Api::TrainTimetable::Info
end

#factory_for_seeding_listObject



112
113
114
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 112

def factory_for_seeding_list
  ::TokyoMetro::Factory::Seed::Api::TrainTimetable::List
end

#factory_for_seeding_train_relationsObject



116
117
118
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 116

def factory_for_seeding_train_relations
  ::TokyoMetro::Factory::Seed::Api::TrainTimetable::List::TrainRelations
end

#file_info_class_for_savingObject



92
93
94
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 92

def file_info_class_for_saving
  ::TokyoMetro::Factory::Save::Api::TrainTimetable::Group::FileInfo
end

#following_train_info_classObject



64
65
66
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 64

def following_train_info_class
  ::TokyoMetro::Api::TrainTimetable::Info::StationTime::Info::TrainRelation::Following::Info
end

#following_train_list_classObject



60
61
62
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 60

def following_train_list_class
  ::TokyoMetro::Api::TrainTimetable::Info::StationTime::Info::TrainRelation::Following::List
end

#info_classConst ( ::TokyoMetro::Api::TrainTimetable::Info )

配列の要素となるインスタンスのクラス



40
41
42
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 40

def info_class
  ::TokyoMetro::Api::TrainTimetable::Info
end

#key_name_for_determining_dir_when_saving_grouped_infos_and_instance_is_not_generatedString or Symbol

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

Returns:

  • (String or Symbol)


152
153
154
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 152

def key_name_for_determining_dir_when_saving_grouped_infos_and_instance_is_not_generated
  "owl:sameAs"
end

#list_classConst ( ::TokyoMetro::Api::TrainTimetable::List )

配列のクラス



34
35
36
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 34

def list_class
  ::TokyoMetro::Api::TrainTimetable::List
end

#list_class_for_saving_grouped_infosObject



88
89
90
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 88

def list_class_for_saving_grouped_infos
  ::TokyoMetro::Factory::Save::Api::TrainTimetable::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)


146
147
148
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 146

def method_name_for_determining_dir_when_saving_grouped_infos_and_instance_is_generated
  :same_as
end

#previous_train_info_classObject



56
57
58
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 56

def previous_train_info_class
  ::TokyoMetro::Api::TrainTimetable::Info::StationTime::Info::TrainRelation::Previous::Info
end

#previous_train_list_classObject



52
53
54
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 52

def previous_train_list_class
  ::TokyoMetro::Api::TrainTimetable::Info::StationTime::Info::TrainRelation::Previous::List
end

#rdf_typeString

クラス指定 - odpt:TrainTimetable

Returns:

  • (String)


13
14
15
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 13

def rdf_type
 "odpt:TrainTimetable"
end

#regexp_indicating_deleted_part_of_value_and_used_when_determine_saved_file_nameRegexp

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

Returns:

  • (Regexp)


158
159
160
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 158

def regexp_indicating_deleted_part_of_value_and_used_when_determine_saved_file_name
  /\Aodpt\.TrainTimetable\:/
end

#station_time_info_classObject



48
49
50
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 48

def station_time_info_class
  ::TokyoMetro::Api::TrainTimetable::Info::StationTime::Info
end

#station_time_list_classObject



44
45
46
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 44

def station_time_list_class
  ::TokyoMetro::Api::TrainTimetable::Info::StationTime::List
end

#toplevel_namespaceConst ( ::TokyoMetro::Api::TrainTimetable )

トップレベルのクラス

Returns:



28
29
30
# File 'lib/tokyo_metro/class_name_library/api/train_timetable.rb', line 28

def toplevel_namespace
  ::TokyoMetro::Api::TrainTimetable
end