Module: WhereableClause::Condition

Defined in:
lib/whereable_clause.rb

Instance Method Summary collapse

Instance Method Details

#to_hObject

Hash for comparison



39
40
41
42
43
44
45
46
# File 'lib/whereable_clause.rb', line 39

def to_h
  {
    operator.to_sym => {
      column: column.to_s,
      literal: literal.to_s,
    },
  }
end