Class: Arkaan::Ruleset
- Inherits:
-
Object
- Object
- Arkaan::Ruleset
- 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)
Instance Attribute Summary collapse
-
#blueprints ⇒ Array<Arkaan::Rulesets::Blueprint>
The blueprints created inside this ruleset, see the class itself to know what it is.
-
#creator ⇒ Arkaan::Account
The account of the user creating this ruleset.
-
#description ⇒ String
The complete description of the rule set to quickly have informations on its content.
-
#name ⇒ String
The name of the ruleset (eq. “Dungeons and Dragons 4th Edition”).
Instance Attribute Details
#blueprints ⇒ Array<Arkaan::Rulesets::Blueprint>
Returns the blueprints created inside this ruleset, see the class itself to know what it is.
20 |
# File 'lib/arkaan/ruleset.rb', line 20 has_many :blueprints, class_name: 'Arkaan::Rulesets::Blueprint', inverse_of: :ruleset |
#creator ⇒ Arkaan::Account
Returns the account of the user creating this ruleset.
17 |
# File 'lib/arkaan/ruleset.rb', line 17 belongs_to :creator, class_name: 'Arkaan::Account', inverse_of: :rulesets |
#description ⇒ String
Returns 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 |
#name ⇒ String
Returns the name of the ruleset (eq. “Dungeons and Dragons 4th Edition”).
10 |
# File 'lib/arkaan/ruleset.rb', line 10 field :name, type: String |