Class: CardDB::BulkRecordError
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
#dataset_key ⇒ Object
1239
|
# File 'lib/carddb/collection.rb', line 1239
def dataset_key = data['datasetKey']
|
#errors ⇒ Object
1242
1243
1244
|
# File 'lib/carddb/collection.rb', line 1242
def errors
@errors ||= (data['errors'] || []).map { |error| RecordValidationError.new(error, client: client) }
end
|
#index ⇒ Object
1240
|
# File 'lib/carddb/collection.rb', line 1240
def index = data['index']
|