Sha256: e8af5b929041f665fdc7a7ee0b991ef2f265192a1167db49d80153ffcaff4ba7

Contents?: true

Size: 1002 Bytes

Versions: 1

Compression:

Stored size: 1002 Bytes

Contents

# 曜日の情報を扱うクラスの名称を提供するモジュール
module TokyoMetro::ClassNameLibrary::Static::OperationDay

  extend ::ActiveSupport::Concern

  module ClassMethods

    def toplevel_namespace
      ::TokyoMetro::Static::OperationDay
    end

    def list_class
      ::TokyoMetro::Static::OperationDay::List
    end

    def info_class
      ::TokyoMetro::Static::OperationDay::Info
    end

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

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

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

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

    def db_instance_class
      ::OperationDay
    end

    private

    def yaml_file_basename
      "operation_day"
    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/operation_day.rb