Class: InchCI::Worker::Project::Build::GenerateBadge

Inherits:
Object
  • Object
show all
Defined in:
lib/inch_ci/worker/project/build/generate_badge.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project, branch, code_objects) ⇒ GenerateBadge

Returns a new instance of GenerateBadge.


14
15
16
# File 'lib/inch_ci/worker/project/build/generate_badge.rb', line 14

def initialize(project, branch, code_objects)
  Badge.create(project, branch, grade_counts(code_objects))
end

Class Method Details

.call(*args) ⇒ Object


10
11
12
# File 'lib/inch_ci/worker/project/build/generate_badge.rb', line 10

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