Class: MysqlWarmup::Table
- Inherits:
-
Object
- Object
- MysqlWarmup::Table
- Defined in:
- lib/mysql_warmup/table.rb
Constant Summary collapse
- DESC_TABLE_STRUCTURE =
{ field: 0, type: 1, null: 2, key: 3, default: 4, extra: 5 }.freeze
Instance Attribute Summary collapse
-
#indexes ⇒ Object
readonly
Returns the value of attribute indexes.
Instance Method Summary collapse
-
#initialize(table_name, field_infos) ⇒ Table
constructor
A new instance of Table.
Constructor Details
#initialize(table_name, field_infos) ⇒ Table
Returns a new instance of Table.
14 15 16 17 18 |
# File 'lib/mysql_warmup/table.rb', line 14 def initialize(table_name, field_infos) @table_name = table_name @field_infos = field_infos @indexes = build_index end |
Instance Attribute Details
#indexes ⇒ Object (readonly)
Returns the value of attribute indexes.
12 13 14 |
# File 'lib/mysql_warmup/table.rb', line 12 def indexes @indexes end |