Class: Studio::Ability
- Defined in:
- scripts/00800 Studio/00001 Data/00001 Ability.rb
Overview
Data class describing an Ability
Instance Attribute Summary collapse
-
#db_symbol ⇒ Symbol
readonly
db_symbol of the ability.
-
#id ⇒ Integer
readonly
ID of the ability.
-
#text_id ⇒ Integer
readonly
ID of the text of the ability in the text files.
Instance Method Summary collapse
-
#description ⇒ String
(also: #descr)
Get the text description of the ability.
-
#name ⇒ String
Get the text name of the ability.
Instance Attribute Details
#db_symbol ⇒ Symbol (readonly)
db_symbol of the ability
10 11 12 |
# File 'scripts/00800 Studio/00001 Data/00001 Ability.rb', line 10 def db_symbol @db_symbol end |
#id ⇒ Integer (readonly)
ID of the ability
6 7 8 |
# File 'scripts/00800 Studio/00001 Data/00001 Ability.rb', line 6 def id @id end |
#text_id ⇒ Integer (readonly)
ID of the text of the ability in the text files
14 15 16 |
# File 'scripts/00800 Studio/00001 Data/00001 Ability.rb', line 14 def text_id @text_id end |
Instance Method Details
#description ⇒ String Also known as: descr
Get the text description of the ability
18 19 20 |
# File 'scripts/00800 Studio/00001 Data/00001 Ability.rb', line 18 def description return text_get(5, @text_id) end |
#name ⇒ String
Get the text name of the ability
25 26 27 |
# File 'scripts/00800 Studio/00001 Data/00001 Ability.rb', line 25 def name return text_get(4, @text_id) end |