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