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
402 403 404 |
# File 'lib/pinspec/types.rb', line 402 def column @column end |
#from_table ⇒ Object (readonly)
Returns the value of attribute from_table
402 403 404 |
# File 'lib/pinspec/types.rb', line 402 def from_table @from_table end |
#on_delete ⇒ Object (readonly)
Returns the value of attribute on_delete
402 403 404 |
# File 'lib/pinspec/types.rb', line 402 def on_delete @on_delete end |
#primary_key ⇒ Object (readonly)
Returns the value of attribute primary_key
402 403 404 |
# File 'lib/pinspec/types.rb', line 402 def primary_key @primary_key end |
#source ⇒ Object (readonly)
Returns the value of attribute source
402 403 404 |
# File 'lib/pinspec/types.rb', line 402 def source @source end |
#to_table ⇒ Object (readonly)
Returns the value of attribute to_table
402 403 404 |
# File 'lib/pinspec/types.rb', line 402 def to_table @to_table end |
Instance Method Details
#heuristic? ⇒ Boolean
403 404 405 |
# File 'lib/pinspec/types.rb', line 403 def heuristic? source == :heuristic end |
#key ⇒ Object
407 408 409 |
# File 'lib/pinspec/types.rb', line 407 def key "#{from_table}.#{column}" end |