Class: Casino::Intersection::Match::Greater
- Inherits:
-
Equivalence
- Object
- Equivalence
- Casino::Intersection::Match::Greater
- Defined in:
- lib/casino/intersection/match/greater.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Equivalence
#document, #field, #key, #value
Instance Method Summary collapse
Methods inherited from Equivalence
Constructor Details
This class inherits a constructor from Casino::Intersection::Match::Equivalence
Instance Method Details
#eligible? ⇒ Boolean
6 7 8 |
# File 'lib/casino/intersection/match/greater.rb', line 6 def eligible? %w($gt $gte).include? key end |
#evaluate ⇒ Object
10 11 12 |
# File 'lib/casino/intersection/match/greater.rb', line 10 def evaluate greater_than? ? greater_than! : greater_than_or_equal! end |