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.



480
481
482
483
484
485
486
487
488
489
490
491
492
# File 'lib/td/client/model.rb', line 480

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']
end

Instance Attribute Details

#databaseObject (readonly)

Returns the value of attribute database.



495
496
497
# File 'lib/td/client/model.rb', line 495

def database
  @database
end

#error_partsObject (readonly)

Returns the value of attribute error_parts.



502
503
504
# File 'lib/td/client/model.rb', line 502

def error_parts
  @error_parts
end

#error_recordsObject (readonly)

Returns the value of attribute error_records.



500
501
502
# File 'lib/td/client/model.rb', line 500

def error_records
  @error_records
end

#job_idObject (readonly)

Returns the value of attribute job_id.



498
499
500
# File 'lib/td/client/model.rb', line 498

def job_id
  @job_id
end

#nameObject (readonly)

Returns the value of attribute name.



494
495
496
# File 'lib/td/client/model.rb', line 494

def name
  @name
end

#org_nameObject (readonly)

Returns the value of attribute org_name.



503
504
505
# File 'lib/td/client/model.rb', line 503

def org_name
  @org_name
end

#statusObject (readonly)

Returns the value of attribute status.



497
498
499
# File 'lib/td/client/model.rb', line 497

def status
  @status
end

#tableObject (readonly)

Returns the value of attribute table.



496
497
498
# File 'lib/td/client/model.rb', line 496

def table
  @table
end

#valid_partsObject (readonly)

Returns the value of attribute valid_parts.



501
502
503
# File 'lib/td/client/model.rb', line 501

def valid_parts
  @valid_parts
end

#valid_recordsObject (readonly)

Returns the value of attribute valid_records.



499
500
501
# File 'lib/td/client/model.rb', line 499

def valid_records
  @valid_records
end

Instance Method Details

#upload_frozen?Boolean

Returns:

  • (Boolean)


505
506
507
# File 'lib/td/client/model.rb', line 505

def upload_frozen?
  @upload_frozen
end