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
1600
|
# File 'lib/carddb/collection.rb', line 1600
def account_id = data['accountId']
|
#completed? ⇒ Boolean
1616
|
# File 'lib/carddb/collection.rb', line 1616
def completed? = status == 'COMPLETED'
|
#completed_at ⇒ Object
1612
|
# File 'lib/carddb/collection.rb', line 1612
def completed_at = parse_time(data['completedAt'])
|
#created_at ⇒ Object
1613
|
# File 'lib/carddb/collection.rb', line 1613
def created_at = parse_time(data['createdAt'])
|
#dataset ⇒ Object
1623
1624
1625
|
# File 'lib/carddb/collection.rb', line 1623
def dataset
@dataset ||= data['dataset'] ? Dataset.new(data['dataset'], client: client) : nil
end
|
#dataset_id ⇒ Object
1599
|
# File 'lib/carddb/collection.rb', line 1599
def dataset_id = data['datasetId']
|
#download_expires_at ⇒ Object
1609
|
# File 'lib/carddb/collection.rb', line 1609
def download_expires_at = parse_time(data['downloadExpiresAt'])
|
#download_url ⇒ Object
1608
|
# File 'lib/carddb/collection.rb', line 1608
def download_url = data['downloadUrl']
|
#error_message ⇒ Object
1610
|
# File 'lib/carddb/collection.rb', line 1610
def error_message = data['errorMessage']
|
#failed? ⇒ Boolean
1617
|
# File 'lib/carddb/collection.rb', line 1617
def failed? = status == 'FAILED'
|
#file_id ⇒ Object
1607
|
# File 'lib/carddb/collection.rb', line 1607
def file_id = data['fileId']
|
#filter ⇒ Object
1603
|
# File 'lib/carddb/collection.rb', line 1603
def filter = data['filter']
|
1602
|
# File 'lib/carddb/collection.rb', line 1602
def format = data['format']
|
#id ⇒ Object
1597
|
# File 'lib/carddb/collection.rb', line 1597
def id = data['id']
|
#last_checkpoint_index ⇒ Object
1615
|
# File 'lib/carddb/collection.rb', line 1615
def last_checkpoint_index = data['lastCheckpointIndex']
|
#processed_records ⇒ Object
1605
|
# File 'lib/carddb/collection.rb', line 1605
def processed_records = data['processedRecords']
|
#progress ⇒ Object
1606
|
# File 'lib/carddb/collection.rb', line 1606
def progress = data['progress']
|
#publisher ⇒ Object
1619
1620
1621
|
# File 'lib/carddb/collection.rb', line 1619
def publisher
@publisher ||= data['publisher'] ? Publisher.new(data['publisher'], client: client) : nil
end
|
#publisher_id ⇒ Object
1598
|
# File 'lib/carddb/collection.rb', line 1598
def publisher_id = data['publisherId']
|
#started_at ⇒ Object
1611
|
# File 'lib/carddb/collection.rb', line 1611
def started_at = parse_time(data['startedAt'])
|
#status ⇒ Object
1601
|
# File 'lib/carddb/collection.rb', line 1601
def status = data['status']
|
#total_records ⇒ Object
1604
|
# File 'lib/carddb/collection.rb', line 1604
def total_records = data['totalRecords']
|
#updated_at ⇒ Object
1614
|
# File 'lib/carddb/collection.rb', line 1614
def updated_at = parse_time(data['updatedAt'])
|