Class: Databender::ForeignConstraint
- Inherits:
-
Object
- Object
- Databender::ForeignConstraint
- Defined in:
- lib/databender/foreign_constraint.rb
Instance Attribute Summary collapse
-
#column_name ⇒ Object
Returns the value of attribute column_name.
-
#ref_column_name ⇒ Object
Returns the value of attribute ref_column_name.
-
#ref_table_name ⇒ Object
Returns the value of attribute ref_table_name.
-
#table_name ⇒ Object
Returns the value of attribute table_name.
Instance Method Summary collapse
-
#initialize(table_name, column_name, ref_table_name, ref_column_name) ⇒ ForeignConstraint
constructor
A new instance of ForeignConstraint.
Constructor Details
#initialize(table_name, column_name, ref_table_name, ref_column_name) ⇒ ForeignConstraint
Returns a new instance of ForeignConstraint.
5 6 7 8 9 10 |
# File 'lib/databender/foreign_constraint.rb', line 5 def initialize(table_name, column_name, ref_table_name, ref_column_name) @table_name = table_name @column_name = column_name @ref_table_name = ref_table_name @ref_column_name = ref_column_name end |
Instance Attribute Details
#column_name ⇒ Object
Returns the value of attribute column_name.
3 4 5 |
# File 'lib/databender/foreign_constraint.rb', line 3 def column_name @column_name end |
#ref_column_name ⇒ Object
Returns the value of attribute ref_column_name.
3 4 5 |
# File 'lib/databender/foreign_constraint.rb', line 3 def ref_column_name @ref_column_name end |
#ref_table_name ⇒ Object
Returns the value of attribute ref_table_name.
3 4 5 |
# File 'lib/databender/foreign_constraint.rb', line 3 def ref_table_name @ref_table_name end |
#table_name ⇒ Object
Returns the value of attribute table_name.
3 4 5 |
# File 'lib/databender/foreign_constraint.rb', line 3 def table_name @table_name end |