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.

Parameters:



666
667
668
669
670
671
672
673
674
675
676
677
678
# File 'lib/td/client/model.rb', line 666

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.



690
# File 'lib/td/client/model.rb', line 690

attr_reader :name

#error_partsObject (readonly)

Returns the value of attribute error_parts.



690
# File 'lib/td/client/model.rb', line 690

attr_reader :name

#error_recordsObject (readonly)

Returns the value of attribute error_records.



690
# File 'lib/td/client/model.rb', line 690

attr_reader :name

#job_idObject (readonly)

Returns the value of attribute job_id.



690
# File 'lib/td/client/model.rb', line 690

attr_reader :name

#nameObject (readonly)

Returns the value of attribute name.



690
691
692
# File 'lib/td/client/model.rb', line 690

def name
  @name
end

#org_nameObject (readonly)

Returns the value of attribute org_name.



690
# File 'lib/td/client/model.rb', line 690

attr_reader :name

#statusObject (readonly)

Returns the value of attribute status.



690
# File 'lib/td/client/model.rb', line 690

attr_reader :name

#tableObject (readonly)

Returns the value of attribute table.



690
# File 'lib/td/client/model.rb', line 690

attr_reader :name

#valid_partsObject (readonly)

Returns the value of attribute valid_parts.



690
# File 'lib/td/client/model.rb', line 690

attr_reader :name

#valid_recordsObject (readonly)

Returns the value of attribute valid_records.



690
# File 'lib/td/client/model.rb', line 690

attr_reader :name

Instance Method Details

#upload_frozen?Boolean

Returns:

  • (Boolean)


702
703
704
# File 'lib/td/client/model.rb', line 702

def upload_frozen?
  @upload_frozen
end