Class: TurboTest::StaticAnalysis::ActiveRecord::Diff
- Inherits:
-
Struct
- Object
- Struct
- TurboTest::StaticAnalysis::ActiveRecord::Diff
- Defined in:
- lib/turbo_test_static_analysis/active_record_schema/diff.rb
Instance Attribute Summary collapse
-
#added ⇒ Object
Returns the value of attribute added.
-
#changed ⇒ Object
Returns the value of attribute changed.
-
#deleted ⇒ Object
Returns the value of attribute deleted.
Instance Method Summary collapse
-
#initialize ⇒ Diff
constructor
A new instance of Diff.
Constructor Details
#initialize ⇒ Diff
Returns a new instance of Diff.
7 8 9 10 11 12 |
# File 'lib/turbo_test_static_analysis/active_record_schema/diff.rb', line 7 def initialize(*) super self.changed ||= [] self.added ||= [] self.deleted ||= [] end |
Instance Attribute Details
#added ⇒ Object
Returns the value of attribute added
6 7 8 |
# File 'lib/turbo_test_static_analysis/active_record_schema/diff.rb', line 6 def added @added end |
#changed ⇒ Object
Returns the value of attribute changed
6 7 8 |
# File 'lib/turbo_test_static_analysis/active_record_schema/diff.rb', line 6 def changed @changed end |
#deleted ⇒ Object
Returns the value of attribute deleted
6 7 8 |
# File 'lib/turbo_test_static_analysis/active_record_schema/diff.rb', line 6 def deleted @deleted end |