Class: Braintree::AdvancedSearch::RangeNode
Instance Method Summary
collapse
Methods inherited from SearchNode
#initialize, operators
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
|