Class: Vorpal::Config::ForeignKeyInfo
- Inherits:
-
Object
- Object
- Vorpal::Config::ForeignKeyInfo
- Defined in:
- lib/vorpal/config/foreign_key_info.rb
Instance Attribute Summary collapse
-
#fk_column ⇒ Object
readonly
Returns the value of attribute fk_column.
-
#fk_type ⇒ Object
readonly
Returns the value of attribute fk_type.
-
#fk_type_column ⇒ Object
readonly
Returns the value of attribute fk_type_column.
-
#polymorphic ⇒ Object
readonly
Returns the value of attribute polymorphic.
Instance Method Summary collapse
-
#initialize(fk_column, fk_type_column, fk_type, polymorphic) ⇒ ForeignKeyInfo
constructor
A new instance of ForeignKeyInfo.
- #polymorphic? ⇒ Boolean
Constructor Details
#initialize(fk_column, fk_type_column, fk_type, polymorphic) ⇒ ForeignKeyInfo
Returns a new instance of ForeignKeyInfo.
11 12 13 14 15 16 |
# File 'lib/vorpal/config/foreign_key_info.rb', line 11 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_column ⇒ Object (readonly)
Returns the value of attribute fk_column.
9 10 11 |
# File 'lib/vorpal/config/foreign_key_info.rb', line 9 def fk_column @fk_column end |
#fk_type ⇒ Object (readonly)
Returns the value of attribute fk_type.
9 10 11 |
# File 'lib/vorpal/config/foreign_key_info.rb', line 9 def fk_type @fk_type end |
#fk_type_column ⇒ Object (readonly)
Returns the value of attribute fk_type_column.
9 10 11 |
# File 'lib/vorpal/config/foreign_key_info.rb', line 9 def fk_type_column @fk_type_column end |
#polymorphic ⇒ Object (readonly)
Returns the value of attribute polymorphic.
9 10 11 |
# File 'lib/vorpal/config/foreign_key_info.rb', line 9 def polymorphic @polymorphic end |
Instance Method Details
#polymorphic? ⇒ Boolean
18 19 20 |
# File 'lib/vorpal/config/foreign_key_info.rb', line 18 def polymorphic? @polymorphic end |