Class: GOM::Storage::ElasticSearch::Draft::Builder
- Inherits:
-
Object
- Object
- GOM::Storage::ElasticSearch::Draft::Builder
- Defined in:
- lib/gom/storage/elastic_search/draft/builder.rb
Overview
Builds a draft out of a search result item document.
Instance Method Summary collapse
- #draft ⇒ Object
-
#initialize(item) ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize(item) ⇒ Builder
Returns a new instance of Builder.
5 6 7 |
# File 'lib/gom/storage/elastic_search/draft/builder.rb', line 5 def initialize(item) @item = hashed item end |
Instance Method Details
#draft ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/gom/storage/elastic_search/draft/builder.rb', line 9 def draft initialize_draft set_object_id set_class set_properties_and_relations @draft end |