Class: CodeClimate::TestReporter::CalculateBlob

Inherits:
Object
  • Object
show all
Defined in:
lib/code_climate/test_reporter/calculate_blob.rb

Instance Method Summary collapse

Constructor Details

#initialize(file_path) ⇒ CalculateBlob

Returns a new instance of CalculateBlob.



4
5
6
# File 'lib/code_climate/test_reporter/calculate_blob.rb', line 4

def initialize(file_path)
  @file_path = file_path
end

Instance Method Details

#blob_idObject



8
9
10
# File 'lib/code_climate/test_reporter/calculate_blob.rb', line 8

def blob_id
  calculate_with_file or calculate_with_git
end