Sha256: 51081dc8c70dd507f49a9218ca02a965e100078daaa23059eb4f4c76fc0b98ae

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

# API で定義されている列車種別情報を扱うクラスの名称を提供するモジュール
module TokyoMetro::ClassNameLibrary::Static::TrainType::InApi

  extend ::ActiveSupport::Concern

  module ClassMethods

    def toplevel_namespace
      ::TokyoMetro::Static::TrainType::InApi
    end

    def hash_class
      ::TokyoMetro::Static::TrainType::InApi::Hash
    end

    def info_class
      ::TokyoMetro::Static::TrainType::InApi::Info
    end

    def factory_for_generating_from_saved_file
      ::TokyoMetro::Factory::Generate::Static::TrainType::InApi::Hash
    end

    def factory_for_generating_from_hash
      ::TokyoMetro::Factory::Generate::Static::TrainType::InApi::Info
    end

    def factory_for_seeding_hash
      ::TokyoMetro::Factory::Seed::Static::TrainType::InApi::Hash
    end

    def factory_for_seeding_info
      ::TokyoMetro::Factory::Seed::Static::TrainType::InApi::Info
    end

    def db_instance_class
      ::TrainTypeInApi
    end

    private

    def yaml_file_basename
      "train_type/in_api"
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tokyo_metro-0.10.1 lib/tokyo_metro/class_name_library/static/train_type/in_api.rb