Class: OrientDB::RemoteStorage
- Inherits:
-
Object
- Object
- OrientDB::RemoteStorage
- Defined in:
- lib/orientdb/storage.rb
Instance Method Summary collapse
- #get_cluster(name_or_id) ⇒ Object
- #inspect ⇒ Object (also: #to_s)
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 |
#inspect ⇒ Object Also known as: to_s
33 34 35 |
# File 'lib/orientdb/storage.rb', line 33 def inspect "#<OrientDB::RemoteStorage:#{hashCode}>" end |