Class: TurboTest::StaticAnalysis::ActiveRecord::Diff

Inherits:
Struct
  • Object
show all
Defined in:
lib/turbo_test_static_analysis/active_record_schema/diff.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDiff

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

#addedObject

Returns the value of attribute added

Returns:

  • (Object)

    the current value of added



6
7
8
# File 'lib/turbo_test_static_analysis/active_record_schema/diff.rb', line 6

def added
  @added
end

#changedObject

Returns the value of attribute changed

Returns:

  • (Object)

    the current value of changed



6
7
8
# File 'lib/turbo_test_static_analysis/active_record_schema/diff.rb', line 6

def changed
  @changed
end

#deletedObject

Returns the value of attribute deleted

Returns:

  • (Object)

    the current value of deleted



6
7
8
# File 'lib/turbo_test_static_analysis/active_record_schema/diff.rb', line 6

def deleted
  @deleted
end