Method: ActiveOrient::API#create_record

Defined in:
lib/jdbc.rb,
lib/java-api.rb

#create_record(o_class, attributes: {}) ⇒ Object Also known as: create_document



189
190
191
192
193
194
195
# File 'lib/jdbc.rb', line 189

def create_record o_class, attributes: {}
  logger.progname = 'HavaApi#CreateRecord'
  attributes = yield if attributes.empty? && block_given?
  new_record = insert_document( o_class, attributes.to_orient )


end