Class: Zdi::DocumentWrapper
- Inherits:
-
Hashie::Mash
- Object
- Hashie::Mash
- Zdi::DocumentWrapper
- Extended by:
- ClassMethods
- Includes:
- DocumentHelpers
- Defined in:
- lib/zentradi/document_wrapper.rb
Defined Under Namespace
Modules: ClassMethods, MongoCursorMethods
Instance Attribute Summary collapse
-
#collection ⇒ Object
readonly
Returns the value of attribute collection.
Instance Method Summary collapse
-
#initialize(collection, hash = {}) ⇒ DocumentWrapper
constructor
A new instance of DocumentWrapper.
Methods included from ClassMethods
mongo_collection_method_wrap, unwrap, wrap
Methods included from DocumentHelpers
Constructor Details
#initialize(collection, hash = {}) ⇒ DocumentWrapper
Returns a new instance of DocumentWrapper.
48 49 50 51 |
# File 'lib/zentradi/document_wrapper.rb', line 48 def initialize(collection, hash = {}) super(hash) @collection = collection end |
Instance Attribute Details
#collection ⇒ Object (readonly)
Returns the value of attribute collection.
46 47 48 |
# File 'lib/zentradi/document_wrapper.rb', line 46 def collection @collection end |