Class: Mongoid::Report::Input
- Inherits:
-
Object
- Object
- Mongoid::Report::Input
- Defined in:
- lib/mongoid/report/input.rb
Instance Attribute Summary collapse
-
#collection_name ⇒ Object
Returns the value of attribute collection_name.
Instance Method Summary collapse
Instance Attribute Details
#collection_name ⇒ Object
Returns the value of attribute collection_name.
5 6 7 |
# File 'lib/mongoid/report/input.rb', line 5 def collection_name @collection_name end |
Instance Method Details
#collection ⇒ Object
11 12 13 |
# File 'lib/mongoid/report/input.rb', line 11 def collection @collection ||= Mongoid::Report::Collections.get(collection_name) end |
#present? ⇒ Boolean
7 8 9 |
# File 'lib/mongoid/report/input.rb', line 7 def present? collection_name.present? end |