Class: InchCI::Store::CreateRevisionDiff

Inherits:
Object
  • Object
show all
Defined in:
lib/inch_ci/store.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(branch, before_revision, after_revision, diff) ⇒ CreateRevisionDiff

Returns a new instance of CreateRevisionDiff.


63
64
65
66
67
68
69
70
# File 'lib/inch_ci/store.rb', line 63

def initialize(branch, before_revision, after_revision, diff)
  @revision_diff = create_revision_diff(branch, before_revision, after_revision)
  diff.comparisons.each do |comparer|
    unless comparer.unchanged?
      create_code_object_diff(comparer)
    end
  end
end

Instance Attribute Details

#revision_diffObject (readonly)

Returns the value of attribute revision_diff


57
58
59
# File 'lib/inch_ci/store.rb', line 57

def revision_diff
  @revision_diff
end

Class Method Details

.call(*args) ⇒ Object


59
60
61
# File 'lib/inch_ci/store.rb', line 59

def self.call(*args)
  new(*args).revision_diff
end