Module: Mongoid::Extensions::Integer
- Defined in:
- lib/mongoid/extensions/integer.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#__mongoize_time__ ⇒ Time
Returns the integer as a time.
-
#numeric? ⇒ true
Is the integer a number?.
-
#unconvertable_to_bson? ⇒ true
Is the object not to be converted to bson on criteria creation?.
Instance Method Details
#__mongoize_time__ ⇒ Time
Returns the integer as a time.
14 15 16 |
# File 'lib/mongoid/extensions/integer.rb', line 14 def __mongoize_time__ ::Time.at(self) end |
#numeric? ⇒ true
Is the integer a number?
26 27 28 |
# File 'lib/mongoid/extensions/integer.rb', line 26 def numeric? true end |
#unconvertable_to_bson? ⇒ true
Is the object not to be converted to bson on criteria creation?
38 39 40 |
# File 'lib/mongoid/extensions/integer.rb', line 38 def unconvertable_to_bson? true end |