Class: Esse::Collection
- Inherits:
-
Object
- Object
- Esse::Collection
- Includes:
- Enumerable
- Defined in:
- lib/esse/collection.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #each {|<Array, Hash>| ... } ⇒ Object abstract
-
#initialize(**options) ⇒ Collection
constructor
A new instance of Collection.
Constructor Details
#initialize(**options) ⇒ Collection
Returns a new instance of Collection.
8 9 10 |
# File 'lib/esse/collection.rb', line 8 def initialize(**) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/esse/collection.rb', line 6 def @options end |
Instance Method Details
#each {|<Array, Hash>| ... } ⇒ Object
This method is abstract.
Override this method to yield each chunk of documents with optional metadata
14 15 16 |
# File 'lib/esse/collection.rb', line 14 def each raise NotImplementedError, 'Override this method to iterate over the collection' end |