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:



754
755
756
757
758
759
760
761
762
763
764
765
766
# File 'lib/td/client/model.rb', line 754

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.



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

attr_reader :name

#error_partsObject (readonly)

Returns the value of attribute error_parts.



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

attr_reader :name

#error_recordsObject (readonly)

Returns the value of attribute error_records.



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

attr_reader :name

#job_idObject (readonly)

Returns the value of attribute job_id.



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

attr_reader :name

#nameObject (readonly)

Returns the value of attribute name.



778
779
780
# File 'lib/td/client/model.rb', line 778

def name
  @name
end

#org_nameObject (readonly)

Returns the value of attribute org_name.



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

attr_reader :name

#statusObject (readonly)

Returns the value of attribute status.



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

attr_reader :name

#tableObject (readonly)

Returns the value of attribute table.



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

attr_reader :name

#valid_partsObject (readonly)

Returns the value of attribute valid_parts.



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

attr_reader :name

#valid_recordsObject (readonly)

Returns the value of attribute valid_records.



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

attr_reader :name

Instance Method Details

#upload_frozen?Boolean

Returns:

  • (Boolean)


790
791
792
# File 'lib/td/client/model.rb', line 790

def upload_frozen?
  @upload_frozen
end