Class: CodeClimate::TestReporter::CalculateBlob
- Inherits:
-
Object
- Object
- CodeClimate::TestReporter::CalculateBlob
- Defined in:
- lib/code_climate/test_reporter/calculate_blob.rb
Instance Method Summary collapse
- #blob_id ⇒ Object
-
#initialize(file_path) ⇒ CalculateBlob
constructor
A new instance of CalculateBlob.
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_id ⇒ Object
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 |