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.
7 8 9 10 11 12 |
# File 'lib/mongo_mapper/plugins/dynamic_querying/dynamic_finder.rb', line 7 def initialize(method) @method = method @finder = :first @bang = false match end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/mongo_mapper/plugins/dynamic_querying/dynamic_finder.rb', line 5 def attributes @attributes end |
#bang ⇒ Object (readonly)
Returns the value of attribute bang.
5 6 7 |
# File 'lib/mongo_mapper/plugins/dynamic_querying/dynamic_finder.rb', line 5 def bang @bang end |
#finder ⇒ Object (readonly)
Returns the value of attribute finder.
5 6 7 |
# File 'lib/mongo_mapper/plugins/dynamic_querying/dynamic_finder.rb', line 5 def finder @finder end |
#instantiator ⇒ Object (readonly)
Returns the value of attribute instantiator.
5 6 7 |
# File 'lib/mongo_mapper/plugins/dynamic_querying/dynamic_finder.rb', line 5 def instantiator @instantiator end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
5 6 7 |
# File 'lib/mongo_mapper/plugins/dynamic_querying/dynamic_finder.rb', line 5 def method @method end |