Class: Mongoid::Report::Input

Inherits:
Object
  • Object
show all
Defined in:
lib/mongoid/report/input.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#collection_nameObject

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

#collectionObject



11
12
13
# File 'lib/mongoid/report/input.rb', line 11

def collection
  @collection ||= Mongoid::Report::Collections.get(collection_name)
end

#present?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/mongoid/report/input.rb', line 7

def present?
  collection_name.present?
end