Sha256: 1d29d245f84dacc54d5a1f71119fb1f3d4f5025fe2aaf684c19460303e15f04c

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

# 列車運行情報の情報を扱うクラスの名称を提供するモジュール
module TokyoMetro::ClassNameLibrary::Static::TrainOperationStatus

  extend ::ActiveSupport::Concern

  module ClassMethods

    def toplevel_namespace
      ::TokyoMetro::Static::TrainOperationStatus
    end

    def list_class
      ::TokyoMetro::Static::TrainOperationStatus::List
    end

    def info_class
      ::TokyoMetro::Static::TrainOperationStatus::Info
    end

    def factory_for_generating_from_saved_file
      ::TokyoMetro::Factory::Generate::Static::TrainOperationStatus::List
    end

    def factory_for_generating_from_hash
      ::TokyoMetro::Factory::Generate::Static::TrainOperationStatus::Info
    end

    def factory_for_seeding_list
      ::TokyoMetro::Factory::Seed::Static::TrainOperationStatus::List
    end

    def factory_for_seeding_info
      ::TokyoMetro::Factory::Seed::Static::TrainOperationStatus::Info
    end

    def db_instance_class
      ::TrainOperation::Status
    end

    private

    def yaml_file_basename
      "train_operation_status"
    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_operation_status.rb