Class: Braintree::AdvancedSearch::RangeNode

Inherits:
SearchNode
  • Object
show all
Defined in:
lib/braintree/advanced_search.rb

Instance Method Summary collapse

Methods inherited from SearchNode

#initialize, operators

Constructor Details

This class inherits a constructor from Braintree::AdvancedSearch::SearchNode

Instance Method Details

#<=(max) ⇒ Object



90
91
92
# File 'lib/braintree/advanced_search.rb', line 90

def <=(max)
  @parent.add_criteria(@node_name, :max => max)
end

#>=(min) ⇒ Object



86
87
88
# File 'lib/braintree/advanced_search.rb', line 86

def >=(min)
  @parent.add_criteria(@node_name, :min => min)
end

#between(min, max) ⇒ Object



82
83
84
# File 'lib/braintree/advanced_search.rb', line 82

def between(min, max)
  self >= min && self <= max
end