Class: TreasureData::BulkImport

Inherits:
Model
  • Object
show all
Defined in:
lib/td/client/model.rb

Instance Attribute Summary collapse

Attributes inherited from Model

#client

Instance Method Summary collapse

Constructor Details

#initialize(client, data = {}) ⇒ BulkImport

Returns a new instance of BulkImport.



419
420
421
422
423
424
425
426
427
428
429
430
431
432
# File 'lib/td/client/model.rb', line 419

def initialize(client, data={})
  super(client)
  @name = data['name']
  @database = data['database']
  @table = data['table']
  @status = data['status']
  @upload_frozen = data['upload_frozen']
  @job_id = data['job_id']
  @valid_records = data['valid_records']
  @error_records = data['error_records']
  @valid_parts = data['valid_parts']
  @error_parts = data['error_parts']
  @org_name = data['organization']
end

Instance Attribute Details

#databaseObject (readonly)

Returns the value of attribute database.



435
436
437
# File 'lib/td/client/model.rb', line 435

def database
  @database
end

#error_partsObject (readonly)

Returns the value of attribute error_parts.



442
443
444
# File 'lib/td/client/model.rb', line 442

def error_parts
  @error_parts
end

#error_recordsObject (readonly)

Returns the value of attribute error_records.



440
441
442
# File 'lib/td/client/model.rb', line 440

def error_records
  @error_records
end

#job_idObject (readonly)

Returns the value of attribute job_id.



438
439
440
# File 'lib/td/client/model.rb', line 438

def job_id
  @job_id
end

#nameObject (readonly)

Returns the value of attribute name.



434
435
436
# File 'lib/td/client/model.rb', line 434

def name
  @name
end

#org_nameObject (readonly)

Returns the value of attribute org_name.



443
444
445
# File 'lib/td/client/model.rb', line 443

def org_name
  @org_name
end

#statusObject (readonly)

Returns the value of attribute status.



437
438
439
# File 'lib/td/client/model.rb', line 437

def status
  @status
end

#tableObject (readonly)

Returns the value of attribute table.



436
437
438
# File 'lib/td/client/model.rb', line 436

def table
  @table
end

#valid_partsObject (readonly)

Returns the value of attribute valid_parts.



441
442
443
# File 'lib/td/client/model.rb', line 441

def valid_parts
  @valid_parts
end

#valid_recordsObject (readonly)

Returns the value of attribute valid_records.



439
440
441
# File 'lib/td/client/model.rb', line 439

def valid_records
  @valid_records
end

Instance Method Details

#upload_frozen?Boolean

Returns:

  • (Boolean)


445
446
447
# File 'lib/td/client/model.rb', line 445

def upload_frozen?
  @upload_frozen
end