Class: CardDB::DatasetRecordsUpsertPayload

Inherits:
Resource
  • Object
show all
Defined in:
lib/carddb/collection.rb

Instance Attribute Summary

Attributes inherited from Resource

#client, #data

Instance Method Summary collapse

Methods inherited from Resource

#[], #initialize, #key?, #to_h, #to_json

Constructor Details

This class inherits a constructor from CardDB::Resource

Instance Method Details

#dry_run_resultObject



1023
1024
1025
# File 'lib/carddb/collection.rb', line 1023

def dry_run_result
  @dry_run_result ||= data['dryRunResult'] ? BulkImportResult.new(data['dryRunResult'], client: client) : nil
end

#jobObject



1019
1020
1021
# File 'lib/carddb/collection.rb', line 1019

def job
  @job ||= data['job'] ? ImportJob.new(data['job'], client: client) : nil
end