Class: BSON::Timestamp
- Inherits:
-
Object
- Object
- BSON::Timestamp
- Includes:
- Comparable
- Defined in:
- lib/mongolly/extensions/bson/timestamp.rb
Instance Method Summary collapse
Instance Method Details
#-(other) ⇒ Object
12 13 14 |
# File 'lib/mongolly/extensions/bson/timestamp.rb', line 12 def -(other) seconds - other.seconds end |
#<=>(other) ⇒ Object
6 7 8 9 10 |
# File 'lib/mongolly/extensions/bson/timestamp.rb', line 6 def <=>(other) s = seconds <=> other.seconds return s unless s == 0 increment <=> other.increment end |