Class: CardDB::ScanJobMetrics
Instance Attribute Summary
Attributes inherited from Resource
#client, #data
Instance Method Summary
collapse
Methods inherited from Resource
#[], #initialize, #key?, #to_h, #to_json
Instance Method Details
#candidate_count ⇒ Object
995
|
# File 'lib/carddb/collection.rb', line 995
def candidate_count = data['candidateCount']
|
#confidence_label ⇒ Object
997
|
# File 'lib/carddb/collection.rb', line 997
def confidence_label = data['confidenceLabel']
|
#confidence_score ⇒ Object
996
|
# File 'lib/carddb/collection.rb', line 996
def confidence_score = data['confidenceScore']
|
#feature_version ⇒ Object
994
|
# File 'lib/carddb/collection.rb', line 994
def feature_version = data['featureVersion']
|
#stages ⇒ Object
1000
1001
1002
|
# File 'lib/carddb/collection.rb', line 1000
def stages
@stages ||= (data['stages'] || []).map { |stage| ScanStageMetrics.new(stage, client: client) }
end
|
#timings ⇒ Object
998
|
# File 'lib/carddb/collection.rb', line 998
def timings = data['timings'] || {}
|