Class: YeetDba::ForeignKey
- Inherits:
-
Object
- Object
- YeetDba::ForeignKey
- Defined in:
- lib/yeet_dba/models/foreign_key.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
Returns the value of attribute column.
-
#table_a ⇒ Object
Returns the value of attribute table_a.
-
#table_b ⇒ Object
Returns the value of attribute table_b.
Instance Method Summary collapse
-
#initialize(table_a:, table_b:, column:) ⇒ ForeignKey
constructor
A new instance of ForeignKey.
Constructor Details
#initialize(table_a:, table_b:, column:) ⇒ ForeignKey
Returns a new instance of ForeignKey.
7 8 9 10 11 |
# File 'lib/yeet_dba/models/foreign_key.rb', line 7 def initialize(table_a:, table_b:, column:) @table_a = table_a @table_b = table_b @column = column end |
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column.
3 4 5 |
# File 'lib/yeet_dba/models/foreign_key.rb', line 3 def column @column end |
#table_a ⇒ Object
Returns the value of attribute table_a.
3 4 5 |
# File 'lib/yeet_dba/models/foreign_key.rb', line 3 def table_a @table_a end |
#table_b ⇒ Object
Returns the value of attribute table_b.
3 4 5 |
# File 'lib/yeet_dba/models/foreign_key.rb', line 3 def table_b @table_b end |