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
1301
|
# File 'lib/carddb/collection.rb', line 1301
def account_id = data['accountId']
|
#blocked_count ⇒ Object
1312
|
# File 'lib/carddb/collection.rb', line 1312
def blocked_count = data['blockedCount']
|
#completed? ⇒ Boolean
1319
|
# File 'lib/carddb/collection.rb', line 1319
def completed? = status == 'COMPLETED'
|
#completed_at ⇒ Object
1316
|
# File 'lib/carddb/collection.rb', line 1316
def completed_at = parse_time(data['completedAt'])
|
#created_at ⇒ Object
1317
|
# File 'lib/carddb/collection.rb', line 1317
def created_at = parse_time(data['createdAt'])
|
#dataset ⇒ Object
1326
1327
1328
|
# File 'lib/carddb/collection.rb', line 1326
def dataset
@dataset ||= data['dataset'] ? Dataset.new(data['dataset'], client: client) : nil
end
|
#dataset_id ⇒ Object
1300
|
# File 'lib/carddb/collection.rb', line 1300
def dataset_id = data['datasetId']
|
#deleted_count ⇒ Object
1310
|
# File 'lib/carddb/collection.rb', line 1310
def deleted_count = data['deletedCount']
|
#dry_run? ⇒ Boolean
1304
|
# File 'lib/carddb/collection.rb', line 1304
def dry_run? = !!data['dryRun']
|
#error_message ⇒ Object
1314
|
# File 'lib/carddb/collection.rb', line 1314
def error_message = data['errorMessage']
|
#failed? ⇒ Boolean
1320
|
# File 'lib/carddb/collection.rb', line 1320
def failed? = status == 'FAILED'
|
#failed_count ⇒ Object
1313
|
# File 'lib/carddb/collection.rb', line 1313
def failed_count = data['failedCount']
|
#id ⇒ Object
1298
|
# File 'lib/carddb/collection.rb', line 1298
def id = data['id']
|
#matched_count ⇒ Object
1309
|
# File 'lib/carddb/collection.rb', line 1309
def matched_count = data['matchedCount']
|
#missing_count ⇒ Object
1311
|
# File 'lib/carddb/collection.rb', line 1311
def missing_count = data['missingCount']
|
#processed_targets ⇒ Object
1308
|
# File 'lib/carddb/collection.rb', line 1308
def processed_targets = data['processedTargets']
|
#progress ⇒ Object
1306
|
# File 'lib/carddb/collection.rb', line 1306
def progress = data['progress']
|
#publisher ⇒ Object
1322
1323
1324
|
# File 'lib/carddb/collection.rb', line 1322
def publisher
@publisher ||= data['publisher'] ? Publisher.new(data['publisher'], client: client) : nil
end
|
#publisher_id ⇒ Object
1299
|
# File 'lib/carddb/collection.rb', line 1299
def publisher_id = data['publisherId']
|
#results ⇒ Object
1330
1331
1332
|
# File 'lib/carddb/collection.rb', line 1330
def results
@results ||= (data['results'] || []).map { |result| DatasetRecordDeleteJobResult.new(result, client: client) }
end
|
#started_at ⇒ Object
1315
|
# File 'lib/carddb/collection.rb', line 1315
def started_at = parse_time(data['startedAt'])
|
#status ⇒ Object
1302
|
# File 'lib/carddb/collection.rb', line 1302
def status = data['status']
|
#target_type ⇒ Object
1303
|
# File 'lib/carddb/collection.rb', line 1303
def target_type = data['targetType']
|
#targets ⇒ Object
1305
|
# File 'lib/carddb/collection.rb', line 1305
def targets = data['targets'] || []
|
#total_targets ⇒ Object
1307
|
# File 'lib/carddb/collection.rb', line 1307
def total_targets = data['totalTargets']
|
#updated_at ⇒ Object
1318
|
# File 'lib/carddb/collection.rb', line 1318
def updated_at = parse_time(data['updatedAt'])
|