Method: Arango::Graph#to_h
- Defined in:
- lib/Graph.rb
#to_h ⇒ Object
TO HASH ===
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 |
# File 'lib/Graph.rb', line 201 def to_h { "name": @name, "id": @id, "rev": @rev, "isSmart": @isSmart, "numberOfShards": @numberOfShards, "replicationFactor": @replicationFactor, "smartGraphAttribute": @smartGraphAttribute, "edgeDefinitions": edgeDefinitionsRaw, "orphanCollections": orphanCollectionsRaw, "cache_name": @cache_name, "database": @database.name }.delete_if{|k,v| v.nil?} end |