Class: OrientDbClient::Serializers::Serializer7

Inherits:
Object
  • Object
show all
Defined in:
lib/orient_db_client/serializers/serializer7.rb

Constant Summary collapse

@@string_matcher =
/^"[^"]*"$/

Instance Method Summary collapse

Instance Method Details

#serialize(record) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/orient_db_client/serializers/serializer7.rb', line 10

def serialize(record)
    unless record[:document]
        record = { :document => record }
    end

    serialize_document(record)
end