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
1045
|
# File 'lib/carddb/collection.rb', line 1045
def candidate_count = data['candidateCount']
|
#confidence_label ⇒ Object
1047
|
# File 'lib/carddb/collection.rb', line 1047
def confidence_label = data['confidenceLabel']
|
#confidence_score ⇒ Object
1046
|
# File 'lib/carddb/collection.rb', line 1046
def confidence_score = data['confidenceScore']
|
#feature_version ⇒ Object
1044
|
# File 'lib/carddb/collection.rb', line 1044
def feature_version = data['featureVersion']
|
#stages ⇒ Object
1050
1051
1052
|
# File 'lib/carddb/collection.rb', line 1050
def stages
@stages ||= (data['stages'] || []).map { |stage| ScanStageMetrics.new(stage, client: client) }
end
|
#timings ⇒ Object
1048
|
# File 'lib/carddb/collection.rb', line 1048
def timings = data['timings'] || {}
|