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.
1324 1325 |
# File 'docs/3_Studio.rb', line 1324 def initialize end |
Instance Attribute Details
#data ⇒ Array<Array<Integer>]
Get the nature data
1320 1321 1322 |
# File 'docs/3_Studio.rb', line 1320 def data @data end |
#db_symbol_to_id ⇒ Hash<Symbol => Integer>
Get the nature ids
1323 1324 1325 |
# File 'docs/3_Studio.rb', line 1323 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
1329 1330 |
# File 'docs/3_Studio.rb', line 1329 def [](db_symbol) end |
#to_json
Convert the config to json
1332 1333 |
# File 'docs/3_Studio.rb', line 1332 def to_json(*) end |