Class: MongoMapper::Plugins::DynamicQuerying::DynamicFinder
- Defined in:
- lib/mongo_mapper/plugins/dynamic_querying/dynamic_finder.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#bang ⇒ Object
readonly
Returns the value of attribute bang.
-
#finder ⇒ Object
readonly
Returns the value of attribute finder.
-
#instantiator ⇒ Object
readonly
Returns the value of attribute instantiator.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
Instance Method Summary collapse
- #found? ⇒ Boolean
-
#initialize(method) ⇒ DynamicFinder
constructor
A new instance of DynamicFinder.
- #raise? ⇒ Boolean
Constructor Details
#initialize(method) ⇒ DynamicFinder
Returns a new instance of DynamicFinder.
8 9 10 11 12 13 |
# File 'lib/mongo_mapper/plugins/dynamic_querying/dynamic_finder.rb', line 8 def initialize(method) @method = method @finder = :first @bang = false match end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
6 7 8 |
# File 'lib/mongo_mapper/plugins/dynamic_querying/dynamic_finder.rb', line 6 def attributes @attributes end |
#bang ⇒ Object (readonly)
Returns the value of attribute bang.
6 7 8 |
# File 'lib/mongo_mapper/plugins/dynamic_querying/dynamic_finder.rb', line 6 def bang @bang end |
#finder ⇒ Object (readonly)
Returns the value of attribute finder.
6 7 8 |
# File 'lib/mongo_mapper/plugins/dynamic_querying/dynamic_finder.rb', line 6 def finder @finder end |
#instantiator ⇒ Object (readonly)
Returns the value of attribute instantiator.
6 7 8 |
# File 'lib/mongo_mapper/plugins/dynamic_querying/dynamic_finder.rb', line 6 def instantiator @instantiator end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
6 7 8 |
# File 'lib/mongo_mapper/plugins/dynamic_querying/dynamic_finder.rb', line 6 def method @method end |