Module: Mongo::Model
- Includes:
- Object
- Defined in:
- lib/mongo/model/model.rb,
lib/mongo/model.rb,
lib/mongo/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.
10 11 12 |
# File 'lib/mongo/model/model.rb', line 10 def connection @connection end |
.db ⇒ Object
Returns the value of attribute db.
10 11 12 |
# File 'lib/mongo/model/model.rb', line 10 def db @db end |
Instance Attribute Details
#_class ⇒ Object
Returns the value of attribute _class.
4 5 6 |
# File 'lib/mongo/model/model.rb', line 4 def _class @_class end |
#_id ⇒ Object
Returns the value of attribute _id.
4 5 6 |
# File 'lib/mongo/model/model.rb', line 4 def _id @_id end |