class TokyoMetro::Api::MetaClass::Fundamental

API から提供されるデータのメタクラス

Public Class Methods

factory_for_generating_from_saved_file() click to toggle source

保存済みの情報を処理しインスタンスを復元するための Factory Pattern クラス @return [Const (class)] @raise [RuntimeError] サブクラスで定義するため、このクラスでは例外が発生するようにしている。

# File lib/tokyo_metro/api/meta_class/fundamental.rb, line 12
def self.factory_for_generating_from_saved_file
  raise "The class method \"#{ __method__ }\" is not defined in this class \"#{ self.name }\"."
end