class Mobility::Plugins::Arel::Nodes::Jsonb

Public Instance Methods

eq(other) click to toggle source
Calls superclass method
# File lib/mobility/plugins/arel/nodes/pg_ops.rb, line 49
def eq other
  case other
  when NilClass
    to_question.not
  when Integer, Array, ::Hash
    to_dash_arrow.eq other.to_json
  when Jsonb
    to_dash_arrow.eq other.to_dash_arrow
  when JsonbDashArrow
    to_dash_arrow.eq other
  else
    super
  end
end
to_dash_arrow() click to toggle source
# File lib/mobility/plugins/arel/nodes/pg_ops.rb, line 41
def to_dash_arrow
  JsonbDashArrow.new left, right
end
to_question() click to toggle source
# File lib/mobility/plugins/arel/nodes/pg_ops.rb, line 45
def to_question
  JsonbQuestion.new left, right
end