Class: Headache::Record::BatchControl
- Includes:
- Definition::BatchControl
- Defined in:
- lib/headache/record/batch_control.rb
Instance Attribute Summary collapse
-
#batch ⇒ Object
Returns the value of attribute batch.
-
#document ⇒ Object
Returns the value of attribute document.
Instance Method Summary collapse
- #entry_count ⇒ Object
-
#initialize(batch, document) ⇒ BatchControl
constructor
A new instance of BatchControl.
Methods inherited from Base
fields, #normalize_field_value, normalize_field_value, #parse, parse_fields, #parse_fields, parse_fields_normalize, #to_h
Constructor Details
#initialize(batch, document) ⇒ BatchControl
Returns a new instance of BatchControl.
12 13 14 15 |
# File 'lib/headache/record/batch_control.rb', line 12 def initialize(batch, document) @batch = batch @document = document end |
Instance Attribute Details
#batch ⇒ Object
Returns the value of attribute batch.
6 7 8 |
# File 'lib/headache/record/batch_control.rb', line 6 def batch @batch end |
#document ⇒ Object
Returns the value of attribute document.
6 7 8 |
# File 'lib/headache/record/batch_control.rb', line 6 def document @document end |
Instance Method Details
#entry_count ⇒ Object
17 18 19 |
# File 'lib/headache/record/batch_control.rb', line 17 def entry_count batch.size end |