Class: ElasticGraph::Indexer::Operation::Factory::BuildResult
- Inherits:
-
Data
- Object
- Data
- ElasticGraph::Indexer::Operation::Factory::BuildResult
- Defined in:
- lib/elastic_graph/indexer/operation/factory.rb
Overview
Return value from ‘build` that indicates what happened.
-
If it was successful, ‘operations` will be a non-empty array of operations and `failed_event_error` will be nil.
-
If there was a validation issue, ‘operations` will be an empty array and `failed_event_error` will be non-nil.
Class Method Summary collapse
Class Method Details
.failure(failed_event_error) ⇒ Object
201 202 203 |
# File 'lib/elastic_graph/indexer/operation/factory.rb', line 201 def self.failure(failed_event_error) new([], failed_event_error) end |
.success(operations) ⇒ Object
197 198 199 |
# File 'lib/elastic_graph/indexer/operation/factory.rb', line 197 def self.success(operations) new(operations, nil) end |