Class: Arkaan::Ruleset

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Timestamps
Defined in:
lib/arkaan/ruleset.rb

Overview

A set of rules is describing how a specific game system works (eg. Dungeons and Dragons 5th Edition, or Fate)

Author:

Instance Attribute Summary collapse

Instance Attribute Details

#blueprintsArray<Arkaan::Rulesets::Blueprint>

Returns the blueprints created inside this ruleset, see the class itself to know what it is.

Returns:



20
# File 'lib/arkaan/ruleset.rb', line 20

has_many :blueprints, class_name: 'Arkaan::Rulesets::Blueprint', inverse_of: :ruleset

#creatorArkaan::Account

Returns the account of the user creating this ruleset.

Returns:



17
# File 'lib/arkaan/ruleset.rb', line 17

belongs_to :creator, class_name: 'Arkaan::Account', inverse_of: :rulesets

#descriptionString

Returns the complete description of the rule set to quickly have informations on its content.

Returns:

  • (String)

    the complete description of the rule set to quickly have informations on its content.



13
# File 'lib/arkaan/ruleset.rb', line 13

field :description, type: String

#nameString

Returns the name of the ruleset (eq. “Dungeons and Dragons 4th Edition”).

Returns:

  • (String)

    the name of the ruleset (eq. “Dungeons and Dragons 4th Edition”)



10
# File 'lib/arkaan/ruleset.rb', line 10

field :name, type: String