Class: Braintree::AdvancedSearch::RangeNode

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

Overview

:nodoc:

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



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

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

#>=(min) ⇒ Object



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

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

#between(min, max) ⇒ Object



78
79
80
81
# File 'lib/braintree/advanced_search.rb', line 78

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