Module: Vines::Services::VQL::IsNot

Defined in:
lib/vines/services/vql/vql.rb

Instance Method Summary collapse

Instance Method Details

#jsObject



55
56
57
# File 'lib/vines/services/vql/vql.rb', line 55

def js
  "(%s !== %s)" % [lhs.js, rhs.js]
end

#paramsObject



66
67
68
69
70
71
72
73
# File 'lib/vines/services/vql/vql.rb', line 66

def params
  case rhs
  when Vines::Services::VQL::Null
    [lhs.sql]
  else
    [lhs.sql, rhs.sql]
  end
end

#sqlObject



58
59
60
61
62
63
64
65
# File 'lib/vines/services/vql/vql.rb', line 58

def sql
  case rhs
  when Vines::Services::VQL::Null
    "value is not null"
  else
    "value <> ?"
  end
end