Class: OrientDB::RemoteStorage

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

Instance Method Summary collapse

Instance Method Details

#get_cluster(name_or_id) ⇒ Object



24
25
26
27
28
29
30
31
# File 'lib/orientdb/storage.rb', line 24

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



33
34
35
# File 'lib/orientdb/storage.rb', line 33

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