Class: Pipeline::BSI::Importer::DataEntryBatch
- Inherits:
-
Object
- Object
- Pipeline::BSI::Importer::DataEntryBatch
- Defined in:
- lib/bsi-pipeline/importer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
-
#id ⇒ Object
Returns the value of attribute id.
-
#properties ⇒ Object
Returns the value of attribute properties.
-
#specimens ⇒ Object
Returns the value of attribute specimens.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(client, batch_type, batch_properties) ⇒ DataEntryBatch
constructor
A new instance of DataEntryBatch.
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
#client ⇒ Object
Returns the value of attribute client.
7 8 9 |
# File 'lib/bsi-pipeline/importer.rb', line 7 def client @client end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/bsi-pipeline/importer.rb', line 7 def id @id end |
#properties ⇒ Object
Returns the value of attribute properties.
7 8 9 |
# File 'lib/bsi-pipeline/importer.rb', line 7 def properties @properties end |
#specimens ⇒ Object
Returns the value of attribute specimens.
7 8 9 |
# File 'lib/bsi-pipeline/importer.rb', line 7 def specimens @specimens end |
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/bsi-pipeline/importer.rb', line 7 def type @type end |