Class: OrientDB::LocalStorage

Inherits:
Object
  • Object
show all
Defined in:
lib/orientdb/storage.rb

Instance Method Summary collapse

Instance Method Details

#get_cluster(name_or_id) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/orientdb/storage.rb', line 5

def get_cluster(name_or_id)
  case name_or_id
    when Integer
      getClusterById name_or_id
    else
      getClusterByName name_or_id.to_s
  end
end

#inspectObject Also known as: to_s



14
15
16
# File 'lib/orientdb/storage.rb', line 14

def inspect
  "#<OrientDB::LocalStorage:#{hashCode}>"
end