Module: TokyoMetro::ClassNameLibrary::Api::Station::ClassMethods

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

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

生成するクラスの情報 collapse

Factory Pattern のクラスの情報 collapse

DB collapse

Instance Method Details

#connecting_railway_line_info_classObject



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_classObject



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

#contextString

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

Returns:

  • (String)


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_classObject



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_infoObject



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_exitObject



196
197
198
# File 'lib/tokyo_metro/class_name_library/api/station.rb', line 196

def db_instance_class_of_exit
  ::StationPoint
end


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_classObject



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_classObject



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_stringObject



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

def factory_for_generating_connecting_railway_from_string
  ::TokyoMetro::Factory::Generate::Api::Station::Info::ConnectingRailwayLine::Info
end

#factory_for_generating_exit_from_stringObject



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

def factory_for_generating_exit_from_string
  ::TokyoMetro::Factory::Generate::Api::Station::Info::Exit::Info
end

#factory_for_generating_from_hashConst ( ::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 factory_for_generating_from_hash
  ::TokyoMetro::Factory::Generate::Api::Station::Info
end

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

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



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

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


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

def factory_for_generating_link_to_passenger_survey_from_string
  ::TokyoMetro::Factory::Generate::Api::Station::Info::LinkToPassengerSurvey::Info
end

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



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_linesObject



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_stationObject



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_exitObject



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_exitsObject



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_stationObject



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_infoObject



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


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


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


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_listObject



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_savingObject



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_classConst ( ::TokyoMetro::Api::Station::Info )

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

Returns:



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

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

Returns:

  • (String or Symbol)


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


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


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_classConst ( ::TokyoMetro::Api::Station::List )

配列のクラス

Returns:



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_infosObject



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

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

Returns:

  • (String or Symbol)


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_typeString

クラス指定 - odpt:Station

Returns:

  • (String)


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_nameRegexp

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

Returns:

  • (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_namespaceConst ( ::TokyoMetro::Api::Station )

トップレベルのクラス

Returns:



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

def toplevel_namespace
  ::TokyoMetro::Api::Station
end