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:



678
679
680
681
682
683
684
685
686
687
688
689
690
# File 'lib/td/client/model.rb', line 678

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.



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

attr_reader :name

#error_partsObject (readonly)

Returns the value of attribute error_parts.



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

attr_reader :name

#error_recordsObject (readonly)

Returns the value of attribute error_records.



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

attr_reader :name

#job_idObject (readonly)

Returns the value of attribute job_id.



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

attr_reader :name

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#org_nameObject (readonly)

Returns the value of attribute org_name.



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

attr_reader :name

#statusObject (readonly)

Returns the value of attribute status.



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

attr_reader :name

#tableObject (readonly)

Returns the value of attribute table.



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

attr_reader :name

#valid_partsObject (readonly)

Returns the value of attribute valid_parts.



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

attr_reader :name

#valid_recordsObject (readonly)

Returns the value of attribute valid_records.



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

attr_reader :name

Instance Method Details

#upload_frozen?Boolean

Returns:

  • (Boolean)


714
715
716
# File 'lib/td/client/model.rb', line 714

def upload_frozen?
  @upload_frozen
end