Class: PgDiff::Rule
- Inherits:
-
Object
- Object
- PgDiff::Rule
- Defined in:
- lib/rule.rb
Instance Attribute Summary collapse
-
#definition ⇒ Object
readonly
Returns the value of attribute definition.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#table_name ⇒ Object
readonly
Returns the value of attribute table_name.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(table_name, name, df) ⇒ Rule
constructor
A new instance of Rule.
Constructor Details
#initialize(table_name, name, df) ⇒ Rule
Returns a new instance of Rule.
5 6 7 8 9 |
# File 'lib/rule.rb', line 5 def initialize(table_name, name, df) @table_name = table_name @name = name @definition = df end |
Instance Attribute Details
#definition ⇒ Object (readonly)
Returns the value of attribute definition.
3 4 5 |
# File 'lib/rule.rb', line 3 def definition @definition end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/rule.rb', line 3 def name @name end |
#table_name ⇒ Object (readonly)
Returns the value of attribute table_name.
3 4 5 |
# File 'lib/rule.rb', line 3 def table_name @table_name end |
Instance Method Details
#==(other) ⇒ Object
11 12 13 |
# File 'lib/rule.rb', line 11 def == (other) other.definition == definition end |