module TokyoMetro::ClassNameLibrary::Api::TrainLocation::ClassMethods
Public Instance Methods
JSON-LD 仕様に基づく context のURL - URL @return [String]
# File lib/tokyo_metro/class_name_library/api/train_location.rb, line 18 def context "http://vocab.tokyometroapp.jp/context_odpt_Train.jsonld" end
JSON をパースして得られた配列の要素である Hash からインスタンスを作成するメソッドための Factory
Pattern クラス @return [Const ( ::TokyoMetro::Factory::Generate::Api::TrainLocation::Info
)]
# File lib/tokyo_metro/class_name_library/api/train_location.rb, line 72 def factory_for_generating_from_hash ::TokyoMetro::Factory::Generate::Api::TrainLocation::Info end
保存済みの情報を処理しインスタンスを復元するための Factory
Pattern クラス @return [Const ( ::TokyoMetro::Factory::Generate::Api::TrainLocation::List
)]
# File lib/tokyo_metro/class_name_library/api/train_location.rb, line 78 def factory_for_generating_from_saved_file ::TokyoMetro::Factory::Generate::Api::TrainLocation::List end
API からデータを取得するための Factory
Pattern クラス @return [Const ( ::TokyoMetro::Factory::Get::Api::DataSearch::TrainLocation
)]
# File lib/tokyo_metro/class_name_library/api/train_location.rb, line 46 def factory_for_getting ::TokyoMetro::Factory::Get::Api::DataSearch::TrainLocation end
グループ化されたデータを保存するための Factory
Pattern クラス @return [Const ( ::TokyoMetro::Factory::Save::Api::TrainLocation::Group
)]
# File lib/tokyo_metro/class_name_library/api/train_location.rb, line 58 def factory_for_saving_datas_of_each_group ::TokyoMetro::Factory::Save::Api::TrainLocation::Group end
API から取得したデータを保存するための Factory
Pattern クラス @return [Const ( ::TokyoMetro::Factory::Save::Api::TrainLocation::EachFile
)]
# File lib/tokyo_metro/class_name_library/api/train_location.rb, line 52 def factory_for_saving_to_each_file ::TokyoMetro::Factory::Save::Api::TrainLocation::EachFile end
# File lib/tokyo_metro/class_name_library/api/train_location.rb, line 66 def file_info_class_for_saving ::TokyoMetro::Factory::Save::Api::TrainLocation::Group::FileInfo end
配列の要素となるインスタンスのクラス @return [Const ( ::TokyoMetro::Api::TrainLocation::Info
)]
# File lib/tokyo_metro/class_name_library/api/train_location.rb, line 38 def info_class ::TokyoMetro::Api::TrainLocation::Info end
API の情報(ハッシュの配列)の各成分をディレクトリ分けするときに使用するキーの設定 @return [String or Symbol]
# File lib/tokyo_metro/class_name_library/api/train_location.rb, line 90 def key_name_for_determining_dir_when_saving_grouped_infos_and_instance_is_not_generated "odpt:railway" end
配列のクラス @return [Const ( ::TokyoMetro::Api::TrainLocation::List
)]
# File lib/tokyo_metro/class_name_library/api/train_location.rb, line 32 def list_class ::TokyoMetro::Api::TrainLocation::List end
# File lib/tokyo_metro/class_name_library/api/train_location.rb, line 62 def list_class_for_saving_grouped_infos ::TokyoMetro::Factory::Save::Api::TrainLocation::Group::List end
API の情報(generate_instance が true のときの、インスタンスの配列)の各成分をディレクトリ分けするときに使用するキーの設定 @return [String or Symbol]
# File lib/tokyo_metro/class_name_library/api/train_location.rb, line 84 def method_name_for_determining_dir_when_saving_grouped_infos_and_instance_is_generated :railway_line end
クラス指定 - odpt:Train @return [String]
# File lib/tokyo_metro/class_name_library/api/train_location.rb, line 12 def rdf_type "odpt:Train" end
ファイル名を作成する際に削除する部分を示す正規表現 @return [Regexp]
# File lib/tokyo_metro/class_name_library/api/train_location.rb, line 96 def regexp_indicating_deleted_part_of_value_and_used_when_determine_saved_file_name /\Aodpt\.Railway\:/ end
トップレベルのクラス @return [Const ( ::TokyoMetro::Api::TrainLocation
)]
# File lib/tokyo_metro/class_name_library/api/train_location.rb, line 26 def toplevel_namespace ::TokyoMetro::Api::TrainLocation end
Private Instance Methods
データを保存するディレクトリ @return [String]
# File lib/tokyo_metro/class_name_library/api/train_location.rb, line 106 def db_dirname_sub "train_location" end