Method: MarkLogic::ObjectId.from_string

Defined in:
lib/marklogic/object_id.rb

.from_string(str) ⇒ Object



21
22
23
24
25
# File 'lib/marklogic/object_id.rb', line 21

def from_string(str)
  object_id = allocate
  object_id.instance_variable_set(:@id, str)
  object_id
end