Class: Configs::Natures
Overview
Configuration of natures
Instance Attribute Summary collapse
-
#data ⇒ Array<Array<Integer>]
Get the nature data.
-
#db_symbol_to_id ⇒ Hash<Symbol => Integer>
Get the nature ids.
Instance Method Summary collapse
-
#[](db_symbol) ⇒ Array<Integer>
Get an ability data by id or db_symbol.
-
#initialize ⇒ Natures
constructor
A new instance of Natures.
-
#to_json
Convert the config to json.
Constructor Details
#initialize ⇒ Natures
Returns a new instance of Natures.
1293 1294 |
# File 'docs/00800_Studio.rb', line 1293 def initialize end |
Instance Attribute Details
#data ⇒ Array<Array<Integer>]
Get the nature data
1289 1290 1291 |
# File 'docs/00800_Studio.rb', line 1289 def data @data end |
#db_symbol_to_id ⇒ Hash<Symbol => Integer>
Get the nature ids
1292 1293 1294 |
# File 'docs/00800_Studio.rb', line 1292 def db_symbol_to_id @db_symbol_to_id end |
Instance Method Details
#[](db_symbol) ⇒ Array<Integer>
Get an ability data by id or db_symbol
1298 1299 |
# File 'docs/00800_Studio.rb', line 1298 def [](db_symbol) end |
#to_json
Convert the config to json
1301 1302 |
# File 'docs/00800_Studio.rb', line 1301 def to_json(*) end |