Class: ActiveRecord::Refined::AST::JsonExcept
- Includes:
- JsonComparable, Predications
- Defined in:
- lib/active_record/refined/ast.rb
Overview
Keys taken out of a JSON document. PostgreSQL subtracts them, the other two remove a path apiece.
Instance Method Summary collapse
-
#initialize(operand, keys) ⇒ JsonExcept
constructor
A new instance of JsonExcept.
Methods included from JsonComparable
#between?, #bitwise_not, #in?, #not_between?, #not_in?, #~
Methods included from Predications
#!=, #!~, #<, #<=, #==, #=~, #>, #>=, #between?, #bury, #casecmp?, #contains?, #dig, #dig_text, #distinct_from?, #end_with?, #except, #false?, #ilike?, #in?, #include?, #intersect?, #key?, #like?, #member?, #not_between?, #not_distinct_from?, #not_false?, #not_ilike?, #not_in?, #not_like?, #not_null?, #not_true?, #null?, #start_with?, #subset?, #superset?, #true?, #when
Methods inherited from Node
Constructor Details
#initialize(operand, keys) ⇒ JsonExcept
Returns a new instance of JsonExcept.
1231 1232 1233 1234 |
# File 'lib/active_record/refined/ast.rb', line 1231 def initialize(operand, keys) @operand = operand @keys = check_keys(keys) end |