lib/braintree/advanced_search.rb in braintree-2.13.4 vs lib/braintree/advanced_search.rb in braintree-2.14.0
- old
+ new
@@ -12,14 +12,18 @@
def initialize(name, parent)
@node_name, @parent = name, parent
end
end
- class EqualityNode < SearchNode # :nodoc:
- operators :is, :is_not
+ class IsNode < SearchNode # :nodoc:
+ operators :is
end
+ class EqualityNode < IsNode # :nodoc:
+ operators :is_not
+ end
+
class PartialMatchNode < EqualityNode # :nodoc:
operators :ends_with, :starts_with
end
class TextNode < PartialMatchNode # :nodoc:
@@ -89,9 +93,13 @@
_create_field_accessors(fields, TextNode)
end
def self.equality_fields(*fields)
_create_field_accessors(fields, EqualityNode)
+ end
+
+ def self.is_fields(*fields)
+ _create_field_accessors(fields, IsNode)
end
def self.partial_match_fields(*fields)
_create_field_accessors(fields, PartialMatchNode)
end