Class: DataKeeper::Definition
- Inherits:
-
Object
- Object
- DataKeeper::Definition
- Defined in:
- lib/data_keeper/definition.rb
Instance Attribute Summary collapse
-
#on_after_load_block ⇒ Object
readonly
Returns the value of attribute on_after_load_block.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #full_tables ⇒ Object
- #full_tables_to_export ⇒ Object
-
#initialize(type, tables, sqls, on_after_load_block) ⇒ Definition
constructor
A new instance of Definition.
- #sqls ⇒ Object
Constructor Details
#initialize(type, tables, sqls, on_after_load_block) ⇒ Definition
Returns a new instance of Definition.
8 9 10 11 12 13 |
# File 'lib/data_keeper/definition.rb', line 8 def initialize(type, tables, sqls, on_after_load_block) @type = type @tables = tables @sqls = sqls @on_after_load_block = on_after_load_block end |
Instance Attribute Details
#on_after_load_block ⇒ Object (readonly)
Returns the value of attribute on_after_load_block.
6 7 8 |
# File 'lib/data_keeper/definition.rb', line 6 def on_after_load_block @on_after_load_block end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/data_keeper/definition.rb', line 6 def type @type end |
Instance Method Details
#full_tables ⇒ Object
15 16 17 |
# File 'lib/data_keeper/definition.rb', line 15 def full_tables @tables end |
#full_tables_to_export ⇒ Object
23 24 25 |
# File 'lib/data_keeper/definition.rb', line 23 def full_tables_to_export full_tables + ['schema_migrations'] end |
#sqls ⇒ Object
19 20 21 |
# File 'lib/data_keeper/definition.rb', line 19 def sqls @sqls end |