Class: Dragnet::Exporters::Exporter
- Inherits:
-
Object
- Object
- Dragnet::Exporters::Exporter
- Defined in:
- lib/dragnet/exporters/exporter.rb
Overview
Base class for all exporter classes.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#repository ⇒ Object
readonly
Returns the value of attribute repository.
-
#test_records ⇒ Object
readonly
Returns the value of attribute test_records.
Instance Method Summary collapse
- #export ⇒ Object
-
#initialize(test_records:, errors:, repository:, logger:) ⇒ Exporter
constructor
A new instance of Exporter.
Constructor Details
#initialize(test_records:, errors:, repository:, logger:) ⇒ Exporter
Returns a new instance of Exporter.
14 15 16 17 18 19 |
# File 'lib/dragnet/exporters/exporter.rb', line 14 def initialize(test_records:, errors:, repository:, logger:) @test_records = test_records @errors = errors @repository = repository @logger = logger end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
7 8 9 |
# File 'lib/dragnet/exporters/exporter.rb', line 7 def errors @errors end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
7 8 9 |
# File 'lib/dragnet/exporters/exporter.rb', line 7 def logger @logger end |
#repository ⇒ Object (readonly)
Returns the value of attribute repository.
7 8 9 |
# File 'lib/dragnet/exporters/exporter.rb', line 7 def repository @repository end |
#test_records ⇒ Object (readonly)
Returns the value of attribute test_records.
7 8 9 |
# File 'lib/dragnet/exporters/exporter.rb', line 7 def test_records @test_records end |
Instance Method Details
#export ⇒ Object
23 24 25 26 |
# File 'lib/dragnet/exporters/exporter.rb', line 23 def export raise NotImplementedError, "'export' method not implemented for class #{self.class}" end |