Class: CardDB::ExportJob
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
1550
|
# File 'lib/carddb/collection.rb', line 1550
def account_id = data['accountId']
|
#completed? ⇒ Boolean
1566
|
# File 'lib/carddb/collection.rb', line 1566
def completed? = status == 'COMPLETED'
|
#completed_at ⇒ Object
1562
|
# File 'lib/carddb/collection.rb', line 1562
def completed_at = parse_time(data['completedAt'])
|
#created_at ⇒ Object
1563
|
# File 'lib/carddb/collection.rb', line 1563
def created_at = parse_time(data['createdAt'])
|
#dataset ⇒ Object
1573
1574
1575
|
# File 'lib/carddb/collection.rb', line 1573
def dataset
@dataset ||= data['dataset'] ? Dataset.new(data['dataset'], client: client) : nil
end
|
#dataset_id ⇒ Object
1549
|
# File 'lib/carddb/collection.rb', line 1549
def dataset_id = data['datasetId']
|
#download_expires_at ⇒ Object
1559
|
# File 'lib/carddb/collection.rb', line 1559
def download_expires_at = parse_time(data['downloadExpiresAt'])
|
#download_url ⇒ Object
1558
|
# File 'lib/carddb/collection.rb', line 1558
def download_url = data['downloadUrl']
|
#error_message ⇒ Object
1560
|
# File 'lib/carddb/collection.rb', line 1560
def error_message = data['errorMessage']
|
#failed? ⇒ Boolean
1567
|
# File 'lib/carddb/collection.rb', line 1567
def failed? = status == 'FAILED'
|
#file_id ⇒ Object
1557
|
# File 'lib/carddb/collection.rb', line 1557
def file_id = data['fileId']
|
#filter ⇒ Object
1553
|
# File 'lib/carddb/collection.rb', line 1553
def filter = data['filter']
|
1552
|
# File 'lib/carddb/collection.rb', line 1552
def format = data['format']
|
#id ⇒ Object
1547
|
# File 'lib/carddb/collection.rb', line 1547
def id = data['id']
|
#last_checkpoint_index ⇒ Object
1565
|
# File 'lib/carddb/collection.rb', line 1565
def last_checkpoint_index = data['lastCheckpointIndex']
|
#processed_records ⇒ Object
1555
|
# File 'lib/carddb/collection.rb', line 1555
def processed_records = data['processedRecords']
|
#progress ⇒ Object
1556
|
# File 'lib/carddb/collection.rb', line 1556
def progress = data['progress']
|
#publisher ⇒ Object
1569
1570
1571
|
# File 'lib/carddb/collection.rb', line 1569
def publisher
@publisher ||= data['publisher'] ? Publisher.new(data['publisher'], client: client) : nil
end
|
#publisher_id ⇒ Object
1548
|
# File 'lib/carddb/collection.rb', line 1548
def publisher_id = data['publisherId']
|
#started_at ⇒ Object
1561
|
# File 'lib/carddb/collection.rb', line 1561
def started_at = parse_time(data['startedAt'])
|
#status ⇒ Object
1551
|
# File 'lib/carddb/collection.rb', line 1551
def status = data['status']
|
#total_records ⇒ Object
1554
|
# File 'lib/carddb/collection.rb', line 1554
def total_records = data['totalRecords']
|
#updated_at ⇒ Object
1564
|
# File 'lib/carddb/collection.rb', line 1564
def updated_at = parse_time(data['updatedAt'])
|