Class: DataImport::Definition
- Inherits:
-
Object
- Object
- DataImport::Definition
- Defined in:
- lib/data-import/definition.rb,
lib/data-import/definition/simple.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Simple
Instance Attribute Summary collapse
-
#dependencies ⇒ Object
readonly
Returns the value of attribute dependencies.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#source_database ⇒ Object
readonly
Returns the value of attribute source_database.
-
#target_database ⇒ Object
readonly
Returns the value of attribute target_database.
Instance Method Summary collapse
- #add_dependency(dependency) ⇒ Object
-
#initialize(name, source_database, target_database) ⇒ Definition
constructor
A new instance of Definition.
Constructor Details
#initialize(name, source_database, target_database) ⇒ Definition
Returns a new instance of Definition.
9 10 11 12 13 14 |
# File 'lib/data-import/definition.rb', line 9 def initialize(name, source_database, target_database) @name = name @source_database = source_database @target_database = target_database @dependencies = [] end |
Instance Attribute Details
#dependencies ⇒ Object (readonly)
Returns the value of attribute dependencies.
7 8 9 |
# File 'lib/data-import/definition.rb', line 7 def dependencies @dependencies end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/data-import/definition.rb', line 5 def name @name end |
#source_database ⇒ Object (readonly)
Returns the value of attribute source_database.
6 7 8 |
# File 'lib/data-import/definition.rb', line 6 def source_database @source_database end |
#target_database ⇒ Object (readonly)
Returns the value of attribute target_database.
6 7 8 |
# File 'lib/data-import/definition.rb', line 6 def target_database @target_database end |
Instance Method Details
#add_dependency(dependency) ⇒ Object
16 17 18 |
# File 'lib/data-import/definition.rb', line 16 def add_dependency(dependency) @dependencies << dependency end |