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

- (Object) <=(max)



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

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

- (Object) >=(min)



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

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

- (Object) between(min, max)



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

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