Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/orientdb-ar/ext.rb
Instance Method Summary collapse
Instance Method Details
#to_orientdb ⇒ Object
83 84 85 |
# File 'lib/orientdb-ar/ext.rb', line 83 def to_orientdb inject(java.util.HashMap.new) { |h, (k, v)| h[k.to_s] = v.respond_to?(:to_orientdb) ? v.to_orientdb : v; h } end |
#to_orientdb_ar ⇒ Object
87 88 89 |
# File 'lib/orientdb-ar/ext.rb', line 87 def to_orientdb_ar inject({ }) { |h, (k, v)| h[k] = v.respond_to?(:to_orientdb_ar) ? v.to_orientdb_ar : v; h } end |