Module: TokyoMetro::ClassNameLibrary::Api::RailwayLine::ClassMethods

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

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

生成するクラスの情報 collapse

Factory Pattern のクラスの情報 collapse

DB に関連するクラスの情報 collapse

Instance Method Details

#contextString

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

Returns:

  • (String)


18
19
20
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 18

def context
  "http://vocab.tokyometroapp.jp/context_odpt_Railway.jsonld"
end

#db_instance_classObject



160
161
162
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 160

def db_instance_class
  ::RailwayLine
end

#db_instance_class_of_travel_time_infosObject



164
165
166
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 164

def db_instance_class_of_travel_time_infos
  ::TravelTimeInfo
end

#db_instance_class_of_women_only_car_infosObject



168
169
170
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 168

def db_instance_class_of_women_only_car_infos
  ::WomenOnlyCarInfo
end

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

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



82
83
84
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 82

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

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

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



100
101
102
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 100

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

#factory_for_generating_station_order_info_from_hashObject



86
87
88
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 86

def factory_for_generating_station_order_info_from_hash
  ::TokyoMetro::Factory::Generate::Api::RailwayLine::Info::StationOrder::Info
end

#factory_for_generating_travel_time_info_from_hashObject



90
91
92
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 90

def factory_for_generating_travel_time_info_from_hash
  ::TokyoMetro::Factory::Generate::Api::RailwayLine::Info::TravelTime::Info
end

#factory_for_generating_women_only_car_info_from_hashObject



94
95
96
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 94

def factory_for_generating_women_only_car_info_from_hash
  ::TokyoMetro::Factory::Generate::Api::RailwayLine::Info::WomenOnlyCar::Info
end

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

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



50
51
52
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 50

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

#factory_for_getting_geoConst ( ::TokyoMetro::Factory::Get::Api::Geo::RailwayLine )

API からデータを取得するための Factory Pattern クラス(地物検索 API)



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

def factory_for_getting_geo
  ::TokyoMetro::Factory::Get::Api::Geo::RailwayLine
end

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

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



68
69
70
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 68

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

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

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



62
63
64
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 62

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

#factory_for_seeding_list_of_travel_time_infosObject

end



118
119
120
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 118

def factory_for_seeding_list_of_travel_time_infos
  ::TokyoMetro::Factory::Seed::Api::RailwayLine::List::TravelTime
end

#factory_for_seeding_list_of_women_only_car_infosObject



130
131
132
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 130

def factory_for_seeding_list_of_women_only_car_infos
  ::TokyoMetro::Factory::Seed::Api::RailwayLine::List::WomenOnlyCar
end

#factory_for_seeding_travel_time_infosObject



126
127
128
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 126

def factory_for_seeding_travel_time_infos
  ::TokyoMetro::Factory::Seed::Api::RailwayLine::Info::TravelTime::Info
end

#factory_for_seeding_travel_time_infos_in_each_railway_lineObject



122
123
124
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 122

def factory_for_seeding_travel_time_infos_in_each_railway_line
  ::TokyoMetro::Factory::Seed::Api::RailwayLine::Info::TravelTime::List
end

#factory_for_seeding_women_only_car_infosObject



138
139
140
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 138

def factory_for_seeding_women_only_car_infos
  ::TokyoMetro::Factory::Seed::Api::RailwayLine::Info::WomenOnlyCar::Info
end

#factory_for_seeding_women_only_car_infos_in_each_railway_lineObject



134
135
136
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 134

def factory_for_seeding_women_only_car_infos_in_each_railway_line
  ::TokyoMetro::Factory::Seed::Api::RailwayLine::Info::WomenOnlyCar::List
end

#file_info_class_for_savingObject



76
77
78
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 76

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

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

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



38
39
40
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 38

def info_class
  ::TokyoMetro::Api::RailwayLine::Info
end

#key_name_for_determining_dir_when_saving_grouped_infos_and_instance_is_not_generatedString or Symbol

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

Returns:

  • (String or Symbol)


150
151
152
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 150

def key_name_for_determining_dir_when_saving_grouped_infos_and_instance_is_not_generated
  "owl:sameAs"
end

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

配列のクラス



32
33
34
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 32

def list_class
  ::TokyoMetro::Api::RailwayLine::List
end

#list_class_for_saving_grouped_infosObject



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

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


144
145
146
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 144

def method_name_for_determining_dir_when_saving_grouped_infos_and_instance_is_generated
  :same_as
end

#rdf_typeString

クラス指定 - odpt:Railway

Returns:

  • (String)


12
13
14
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 12

def rdf_type
  "odpt:Railway"
end

#regexp_indicating_deleted_part_of_value_and_used_when_determine_saved_file_nameRegexp

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

Returns:

  • (Regexp)


156
157
158
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 156

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

#toplevel_namespaceConst ( ::TokyoMetro::Api::RailwayLine )

トップレベルのクラス

Returns:



26
27
28
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 26

def toplevel_namespace
  ::TokyoMetro::Api::RailwayLine
end

#travel_time_info_classObject



42
43
44
# File 'lib/tokyo_metro/class_name_library/api/railway_line.rb', line 42

def travel_time_info_class
  ::TokyoMetro::Api::RailwayLine::Info::TravelTime::Info
end