Class: BCDice::DiceTable::SaiFicSkillTable::Skill
- Inherits:
-
Object
- Object
- BCDice::DiceTable::SaiFicSkillTable::Skill
- Defined in:
- lib/bcdice/dice_table/sai_fic_skill_table/skill.rb
Instance Attribute Summary collapse
-
#category_dice ⇒ Object
readonly
Returns the value of attribute category_dice.
-
#category_name ⇒ Object
readonly
Returns the value of attribute category_name.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#row_dice ⇒ Object
readonly
Returns the value of attribute row_dice.
Instance Method Summary collapse
-
#initialize(category_name, skill_name, category_dice, row_dice, s_format) ⇒ Skill
constructor
A new instance of Skill.
- #to_s ⇒ Object
Constructor Details
#initialize(category_name, skill_name, category_dice, row_dice, s_format) ⇒ Skill
Returns a new instance of Skill.
7 8 9 10 11 12 13 |
# File 'lib/bcdice/dice_table/sai_fic_skill_table/skill.rb', line 7 def initialize(category_name, skill_name, category_dice, row_dice, s_format) @category_name = category_name @name = skill_name @category_dice = category_dice @row_dice = row_dice @s_format = s_format end |
Instance Attribute Details
#category_dice ⇒ Object (readonly)
Returns the value of attribute category_dice.
19 20 21 |
# File 'lib/bcdice/dice_table/sai_fic_skill_table/skill.rb', line 19 def category_dice @category_dice end |
#category_name ⇒ Object (readonly)
Returns the value of attribute category_name.
19 20 21 |
# File 'lib/bcdice/dice_table/sai_fic_skill_table/skill.rb', line 19 def category_name @category_name end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
19 20 21 |
# File 'lib/bcdice/dice_table/sai_fic_skill_table/skill.rb', line 19 def name @name end |
#row_dice ⇒ Object (readonly)
Returns the value of attribute row_dice.
19 20 21 |
# File 'lib/bcdice/dice_table/sai_fic_skill_table/skill.rb', line 19 def row_dice @row_dice end |
Instance Method Details
#to_s ⇒ Object
15 16 17 |
# File 'lib/bcdice/dice_table/sai_fic_skill_table/skill.rb', line 15 def to_s format(@s_format, category_dice: @category_dice, row_dice: @row_dice, category_name: @category_name, skill_name: @name) end |