Class: Pinspec::ForeignKey
- Inherits:
-
Data
- Object
- Data
- Pinspec::ForeignKey
- Defined in:
- lib/pinspec/types.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#from_table ⇒ Object
readonly
Returns the value of attribute from_table.
-
#on_delete ⇒ Object
readonly
Returns the value of attribute on_delete.
-
#primary_key ⇒ Object
readonly
Returns the value of attribute primary_key.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#to_table ⇒ Object
readonly
Returns the value of attribute to_table.
Instance Method Summary collapse
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column
442 443 444 |
# File 'lib/pinspec/types.rb', line 442 def column @column end |
#from_table ⇒ Object (readonly)
Returns the value of attribute from_table
442 443 444 |
# File 'lib/pinspec/types.rb', line 442 def from_table @from_table end |
#on_delete ⇒ Object (readonly)
Returns the value of attribute on_delete
442 443 444 |
# File 'lib/pinspec/types.rb', line 442 def on_delete @on_delete end |
#primary_key ⇒ Object (readonly)
Returns the value of attribute primary_key
442 443 444 |
# File 'lib/pinspec/types.rb', line 442 def primary_key @primary_key end |
#source ⇒ Object (readonly)
Returns the value of attribute source
442 443 444 |
# File 'lib/pinspec/types.rb', line 442 def source @source end |
#to_table ⇒ Object (readonly)
Returns the value of attribute to_table
442 443 444 |
# File 'lib/pinspec/types.rb', line 442 def to_table @to_table end |
Instance Method Details
#heuristic? ⇒ Boolean
443 444 445 |
# File 'lib/pinspec/types.rb', line 443 def heuristic? source == :heuristic end |
#key ⇒ Object
447 448 449 |
# File 'lib/pinspec/types.rb', line 447 def key "#{from_table}.#{column}" end |