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.



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

def initialize(file_path)
  @file_path = file_path
end

Instance Method Details

#blob_idObject



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

def blob_id
  calculate_with_file or calculate_with_git
end