Class: ForeignKeyChecker::Utils::Result
- Inherits:
-
Object
- Object
- ForeignKeyChecker::Utils::Result
- Defined in:
- lib/foreign_key_checker/utils.rb
Instance Attribute Summary collapse
-
#from_column ⇒ Object
readonly
Returns the value of attribute from_column.
-
#from_table ⇒ Object
readonly
Returns the value of attribute from_table.
-
#to_column ⇒ Object
readonly
Returns the value of attribute to_column.
-
#to_table ⇒ Object
readonly
Returns the value of attribute to_table.
Instance Method Summary collapse
-
#initialize(args) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(args) ⇒ Result
Returns a new instance of Result.
5 6 7 |
# File 'lib/foreign_key_checker/utils.rb', line 5 def initialize(args) args.each { |k, v| instance_variable_set("@#{k}", v) } end |
Instance Attribute Details
#from_column ⇒ Object (readonly)
Returns the value of attribute from_column.
4 5 6 |
# File 'lib/foreign_key_checker/utils.rb', line 4 def from_column @from_column end |
#from_table ⇒ Object (readonly)
Returns the value of attribute from_table.
4 5 6 |
# File 'lib/foreign_key_checker/utils.rb', line 4 def from_table @from_table end |
#to_column ⇒ Object (readonly)
Returns the value of attribute to_column.
4 5 6 |
# File 'lib/foreign_key_checker/utils.rb', line 4 def to_column @to_column end |
#to_table ⇒ Object (readonly)
Returns the value of attribute to_table.
4 5 6 |
# File 'lib/foreign_key_checker/utils.rb', line 4 def to_table @to_table end |