Class: Pipeline::BSI::Importer::DataEntryBatch

Inherits:
Object
  • Object
show all
Defined in:
lib/bsi-pipeline/importer.rb

Direct Known Subclasses

AddBatch

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client, batch_type, batch_properties) ⇒ DataEntryBatch

Returns a new instance of DataEntryBatch.



8
9
10
11
12
13
# File 'lib/bsi-pipeline/importer.rb', line 8

def initialize(client, batch_type, batch_properties)
  @type       = batch_type
  @properties = batch_properties
  @bsi        = client
  @id         = @bsi.batch.create(batch_type, batch_properties)
end

Instance Attribute Details

#clientObject

Returns the value of attribute client.



7
8
9
# File 'lib/bsi-pipeline/importer.rb', line 7

def client
  @client
end

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/bsi-pipeline/importer.rb', line 7

def id
  @id
end

#propertiesObject

Returns the value of attribute properties.



7
8
9
# File 'lib/bsi-pipeline/importer.rb', line 7

def properties
  @properties
end

#specimensObject

Returns the value of attribute specimens.



7
8
9
# File 'lib/bsi-pipeline/importer.rb', line 7

def specimens
  @specimens
end

#typeObject

Returns the value of attribute type.



7
8
9
# File 'lib/bsi-pipeline/importer.rb', line 7

def type
  @type
end