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
1364
|
# File 'lib/carddb/collection.rb', line 1364
def account_id = data['accountId']
|
#blocked_count ⇒ Object
1375
|
# File 'lib/carddb/collection.rb', line 1375
def blocked_count = data['blockedCount']
|
#completed? ⇒ Boolean
1382
|
# File 'lib/carddb/collection.rb', line 1382
def completed? = status == 'COMPLETED'
|
#completed_at ⇒ Object
1379
|
# File 'lib/carddb/collection.rb', line 1379
def completed_at = parse_time(data['completedAt'])
|
#created_at ⇒ Object
1380
|
# File 'lib/carddb/collection.rb', line 1380
def created_at = parse_time(data['createdAt'])
|
#dataset ⇒ Object
1389
1390
1391
|
# File 'lib/carddb/collection.rb', line 1389
def dataset
@dataset ||= data['dataset'] ? Dataset.new(data['dataset'], client: client) : nil
end
|
#dataset_id ⇒ Object
1363
|
# File 'lib/carddb/collection.rb', line 1363
def dataset_id = data['datasetId']
|
#deleted_count ⇒ Object
1373
|
# File 'lib/carddb/collection.rb', line 1373
def deleted_count = data['deletedCount']
|
#dry_run? ⇒ Boolean
1367
|
# File 'lib/carddb/collection.rb', line 1367
def dry_run? = !!data['dryRun']
|
#error_message ⇒ Object
1377
|
# File 'lib/carddb/collection.rb', line 1377
def error_message = data['errorMessage']
|
#failed? ⇒ Boolean
1383
|
# File 'lib/carddb/collection.rb', line 1383
def failed? = status == 'FAILED'
|
#failed_count ⇒ Object
1376
|
# File 'lib/carddb/collection.rb', line 1376
def failed_count = data['failedCount']
|
#id ⇒ Object
1361
|
# File 'lib/carddb/collection.rb', line 1361
def id = data['id']
|
#matched_count ⇒ Object
1372
|
# File 'lib/carddb/collection.rb', line 1372
def matched_count = data['matchedCount']
|
#missing_count ⇒ Object
1374
|
# File 'lib/carddb/collection.rb', line 1374
def missing_count = data['missingCount']
|
#processed_targets ⇒ Object
1371
|
# File 'lib/carddb/collection.rb', line 1371
def processed_targets = data['processedTargets']
|
#progress ⇒ Object
1369
|
# File 'lib/carddb/collection.rb', line 1369
def progress = data['progress']
|
#publisher ⇒ Object
1385
1386
1387
|
# File 'lib/carddb/collection.rb', line 1385
def publisher
@publisher ||= data['publisher'] ? Publisher.new(data['publisher'], client: client) : nil
end
|
#publisher_id ⇒ Object
1362
|
# File 'lib/carddb/collection.rb', line 1362
def publisher_id = data['publisherId']
|
#results ⇒ Object
1393
1394
1395
|
# File 'lib/carddb/collection.rb', line 1393
def results
@results ||= (data['results'] || []).map { |result| DatasetRecordDeleteJobResult.new(result, client: client) }
end
|
#started_at ⇒ Object
1378
|
# File 'lib/carddb/collection.rb', line 1378
def started_at = parse_time(data['startedAt'])
|
#status ⇒ Object
1365
|
# File 'lib/carddb/collection.rb', line 1365
def status = data['status']
|
#target_type ⇒ Object
1366
|
# File 'lib/carddb/collection.rb', line 1366
def target_type = data['targetType']
|
#targets ⇒ Object
1368
|
# File 'lib/carddb/collection.rb', line 1368
def targets = data['targets'] || []
|
#total_targets ⇒ Object
1370
|
# File 'lib/carddb/collection.rb', line 1370
def total_targets = data['totalTargets']
|
#updated_at ⇒ Object
1381
|
# File 'lib/carddb/collection.rb', line 1381
def updated_at = parse_time(data['updatedAt'])
|