Class: CardDB::DatasetRecordDeleteJob
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
#account_id ⇒ Object
1040
|
# File 'lib/carddb/collection.rb', line 1040
def account_id = data['accountId']
|
#blocked_count ⇒ Object
1051
|
# File 'lib/carddb/collection.rb', line 1051
def blocked_count = data['blockedCount']
|
#completed? ⇒ Boolean
1058
|
# File 'lib/carddb/collection.rb', line 1058
def completed? = status == 'COMPLETED'
|
#completed_at ⇒ Object
1055
|
# File 'lib/carddb/collection.rb', line 1055
def completed_at = parse_time(data['completedAt'])
|
#created_at ⇒ Object
1056
|
# File 'lib/carddb/collection.rb', line 1056
def created_at = parse_time(data['createdAt'])
|
#dataset ⇒ Object
1065
1066
1067
|
# File 'lib/carddb/collection.rb', line 1065
def dataset
@dataset ||= data['dataset'] ? Dataset.new(data['dataset'], client: client) : nil
end
|
#dataset_id ⇒ Object
1039
|
# File 'lib/carddb/collection.rb', line 1039
def dataset_id = data['datasetId']
|
#deleted_count ⇒ Object
1049
|
# File 'lib/carddb/collection.rb', line 1049
def deleted_count = data['deletedCount']
|
#dry_run? ⇒ Boolean
1043
|
# File 'lib/carddb/collection.rb', line 1043
def dry_run? = !!data['dryRun']
|
#error_message ⇒ Object
1053
|
# File 'lib/carddb/collection.rb', line 1053
def error_message = data['errorMessage']
|
#failed? ⇒ Boolean
1059
|
# File 'lib/carddb/collection.rb', line 1059
def failed? = status == 'FAILED'
|
#failed_count ⇒ Object
1052
|
# File 'lib/carddb/collection.rb', line 1052
def failed_count = data['failedCount']
|
#id ⇒ Object
1037
|
# File 'lib/carddb/collection.rb', line 1037
def id = data['id']
|
#matched_count ⇒ Object
1048
|
# File 'lib/carddb/collection.rb', line 1048
def matched_count = data['matchedCount']
|
#missing_count ⇒ Object
1050
|
# File 'lib/carddb/collection.rb', line 1050
def missing_count = data['missingCount']
|
#processed_targets ⇒ Object
1047
|
# File 'lib/carddb/collection.rb', line 1047
def processed_targets = data['processedTargets']
|
#progress ⇒ Object
1045
|
# File 'lib/carddb/collection.rb', line 1045
def progress = data['progress']
|
#publisher ⇒ Object
1061
1062
1063
|
# File 'lib/carddb/collection.rb', line 1061
def publisher
@publisher ||= data['publisher'] ? Publisher.new(data['publisher'], client: client) : nil
end
|
#publisher_id ⇒ Object
1038
|
# File 'lib/carddb/collection.rb', line 1038
def publisher_id = data['publisherId']
|
#results ⇒ Object
1069
1070
1071
|
# File 'lib/carddb/collection.rb', line 1069
def results
@results ||= (data['results'] || []).map { |result| DatasetRecordDeleteJobResult.new(result, client: client) }
end
|
#started_at ⇒ Object
1054
|
# File 'lib/carddb/collection.rb', line 1054
def started_at = parse_time(data['startedAt'])
|
#status ⇒ Object
1041
|
# File 'lib/carddb/collection.rb', line 1041
def status = data['status']
|
#target_type ⇒ Object
1042
|
# File 'lib/carddb/collection.rb', line 1042
def target_type = data['targetType']
|
#targets ⇒ Object
1044
|
# File 'lib/carddb/collection.rb', line 1044
def targets = data['targets'] || []
|
#total_targets ⇒ Object
1046
|
# File 'lib/carddb/collection.rb', line 1046
def total_targets = data['totalTargets']
|
#updated_at ⇒ Object
1057
|
# File 'lib/carddb/collection.rb', line 1057
def updated_at = parse_time(data['updatedAt'])
|