Module: Mongo::Model
- Defined in:
- lib/mongo_db/model/model.rb,
lib/mongo_db/model.rb,
lib/mongo_db/model.rb
Class Attribute Summary collapse
-
.connection ⇒ Object
Returns the value of attribute connection.
-
.db ⇒ Object
Returns the value of attribute db.
Instance Attribute Summary collapse
-
#_class ⇒ Object
Returns the value of attribute _class.
-
#_id ⇒ Object
Returns the value of attribute _id.
Instance Method Summary collapse
Class Attribute Details
.connection ⇒ Object
Returns the value of attribute connection.
8 9 10 |
# File 'lib/mongo_db/model/model.rb', line 8 def connection @connection end |
.db ⇒ Object
Returns the value of attribute db.
8 9 10 |
# File 'lib/mongo_db/model/model.rb', line 8 def db @db end |
Instance Attribute Details
#_class ⇒ Object
Returns the value of attribute _class.
2 3 4 |
# File 'lib/mongo_db/model/model.rb', line 2 def _class @_class end |
#_id ⇒ Object
Returns the value of attribute _id.
2 3 4 |
# File 'lib/mongo_db/model/model.rb', line 2 def _id @_id end |