Class: MongoMapper::DynamicFinder
- Defined in:
- lib/mongo_mapper/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.
40 41 42 43 44 45 |
# File 'lib/mongo_mapper/dynamic_finder.rb', line 40 def initialize(method) @method = method @finder = :first @bang = false match end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
38 39 40 |
# File 'lib/mongo_mapper/dynamic_finder.rb', line 38 def attributes @attributes end |
#bang ⇒ Object (readonly)
Returns the value of attribute bang.
38 39 40 |
# File 'lib/mongo_mapper/dynamic_finder.rb', line 38 def bang @bang end |
#finder ⇒ Object (readonly)
Returns the value of attribute finder.
38 39 40 |
# File 'lib/mongo_mapper/dynamic_finder.rb', line 38 def finder @finder end |
#instantiator ⇒ Object (readonly)
Returns the value of attribute instantiator.
38 39 40 |
# File 'lib/mongo_mapper/dynamic_finder.rb', line 38 def instantiator @instantiator end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
38 39 40 |
# File 'lib/mongo_mapper/dynamic_finder.rb', line 38 def method @method end |