Class: Journaled::ChangeDefinition
- Inherits:
-
Object
- Object
- Journaled::ChangeDefinition
- Defined in:
- app/models/journaled/change_definition.rb
Instance Attribute Summary collapse
-
#attribute_names ⇒ Object
readonly
Returns the value of attribute attribute_names.
-
#logical_operation ⇒ Object
readonly
Returns the value of attribute logical_operation.
Instance Method Summary collapse
-
#initialize(attribute_names:, logical_operation:) ⇒ ChangeDefinition
constructor
A new instance of ChangeDefinition.
Constructor Details
#initialize(attribute_names:, logical_operation:) ⇒ ChangeDefinition
Returns a new instance of ChangeDefinition.
4 5 6 7 |
# File 'app/models/journaled/change_definition.rb', line 4 def initialize(attribute_names:, logical_operation:) @attribute_names = attribute_names @logical_operation = logical_operation end |
Instance Attribute Details
#attribute_names ⇒ Object (readonly)
Returns the value of attribute attribute_names.
2 3 4 |
# File 'app/models/journaled/change_definition.rb', line 2 def attribute_names @attribute_names end |
#logical_operation ⇒ Object (readonly)
Returns the value of attribute logical_operation.
2 3 4 |
# File 'app/models/journaled/change_definition.rb', line 2 def logical_operation @logical_operation end |