Class: Java::ComMongodb::BasicDBObject

Inherits:
Object
  • Object
show all
Defined in:
lib/jmongo/mongo/jmongo.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.[](*args) ⇒ Object



42
43
44
# File 'lib/jmongo/mongo/jmongo.rb', line 42

def self.[](*args)
  Hash[*args]
end

Instance Method Details

#get(key) ⇒ Object



55
56
57
# File 'lib/jmongo/mongo/jmongo.rb', line 55

def get(key)
  self.java_send(:get,key.to_s)
end

#hashifyObject



47
48
49
# File 'lib/jmongo/mongo/jmongo.rb', line 47

def hashify
  self.to_map.to_hash
end