Class: MongoMapper::Support::Find::DynamicFinder Private
- Defined in:
- lib/mongo_mapper/support/find.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #attributes ⇒ Object readonly private
- #bang ⇒ Object readonly private
- #finder ⇒ Object readonly private
- #instantiator ⇒ Object readonly private
- #method ⇒ Object readonly private
Instance Method Summary collapse
- #found? ⇒ Boolean private
-
#initialize(method) ⇒ DynamicFinder
constructor
private
A new instance of DynamicFinder.
- #raise? ⇒ Boolean private
Constructor Details
#initialize(method) ⇒ DynamicFinder
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of DynamicFinder.
30 31 32 33 34 35 |
# File 'lib/mongo_mapper/support/find.rb', line 30 def initialize(method) @method = method @finder = :first @bang = false match end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
28 29 30 |
# File 'lib/mongo_mapper/support/find.rb', line 28 def attributes @attributes end |
#bang ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
28 29 30 |
# File 'lib/mongo_mapper/support/find.rb', line 28 def bang @bang end |
#finder ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
28 29 30 |
# File 'lib/mongo_mapper/support/find.rb', line 28 def finder @finder end |
#instantiator ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
28 29 30 |
# File 'lib/mongo_mapper/support/find.rb', line 28 def instantiator @instantiator end |
#method ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
28 29 30 |
# File 'lib/mongo_mapper/support/find.rb', line 28 def method @method end |
Instance Method Details
#found? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
37 38 39 |
# File 'lib/mongo_mapper/support/find.rb', line 37 def found? @finder.present? end |
#raise? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
41 42 43 |
# File 'lib/mongo_mapper/support/find.rb', line 41 def raise? bang == true end |