Class: YeetDba::ForeignKey

Inherits:
Object
  • Object
show all
Defined in:
lib/yeet_dba/models/foreign_key.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#columnObject

Returns the value of attribute column.



3
4
5
# File 'lib/yeet_dba/models/foreign_key.rb', line 3

def column
  @column
end

#table_aObject

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_bObject

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