Class: OrientDB::LocalStorage
- Inherits:
-
Object
- Object
- OrientDB::LocalStorage
- 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
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 |
#inspect ⇒ Object Also known as: to_s
14 15 16 |
# File 'lib/orientdb/storage.rb', line 14 def inspect "#<OrientDB::LocalStorage:#{hashCode}>" end |