Class: Caoutsearch::Index::Base
- Inherits:
-
Object
- Object
- Caoutsearch::Index::Base
- Includes:
- Config::Client, Config::Mappings, Config::Settings, Document, Indice, IndiceVersions, Instrumentation, InternalDSL, Naming, Reindex, Scoping, Serialization
- Defined in:
- lib/caoutsearch/index/base.rb
Instance Attribute Summary collapse
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(record) ⇒ Base
constructor
A new instance of Base.
Methods included from Serialization
#as_json, #bulkify, #simplify, #to_json
Methods included from Instrumentation
Methods included from Document
#delete_document, #indexed_document, #update_document
Constructor Details
#initialize(record) ⇒ Base
Returns a new instance of Base.
24 25 26 |
# File 'lib/caoutsearch/index/base.rb', line 24 def initialize(record) @record = record end |
Instance Attribute Details
#record ⇒ Object (readonly)
Returns the value of attribute record.
20 21 22 |
# File 'lib/caoutsearch/index/base.rb', line 20 def record @record end |
Class Method Details
.wrap(*records) ⇒ Object
29 30 31 |
# File 'lib/caoutsearch/index/base.rb', line 29 def wrap(*records) Array.wrap(*records).map { |record| new(record) } end |