Class: Vorpal::ForeignKeyInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/vorpal/configs.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fk_column, fk_type_column, fk_type, polymorphic) ⇒ ForeignKeyInfo

Returns a new instance of ForeignKeyInfo.



196
197
198
199
200
201
# File 'lib/vorpal/configs.rb', line 196

def initialize(fk_column, fk_type_column, fk_type, polymorphic)
  @fk_column = fk_column
  @fk_type_column = fk_type_column
  @fk_type = fk_type
  @polymorphic = polymorphic
end

Instance Attribute Details

#fk_columnObject (readonly)

Returns the value of attribute fk_column.



194
195
196
# File 'lib/vorpal/configs.rb', line 194

def fk_column
  @fk_column
end

#fk_typeObject (readonly)

Returns the value of attribute fk_type.



194
195
196
# File 'lib/vorpal/configs.rb', line 194

def fk_type
  @fk_type
end

#fk_type_columnObject (readonly)

Returns the value of attribute fk_type_column.



194
195
196
# File 'lib/vorpal/configs.rb', line 194

def fk_type_column
  @fk_type_column
end

#polymorphicObject (readonly)

Returns the value of attribute polymorphic.



194
195
196
# File 'lib/vorpal/configs.rb', line 194

def polymorphic
  @polymorphic
end

Instance Method Details

#polymorphic?Boolean

Returns:

  • (Boolean)


203
204
205
# File 'lib/vorpal/configs.rb', line 203

def polymorphic?
  @polymorphic
end