module WhereableClause::Condition

Public Instance Methods

to_h() click to toggle source

Hash for comparison

# File lib/whereable_clause.rb, line 39
def to_h
  {
    operator.to_sym => {
      column: column.to_s,
      literal: literal.to_s,
    },
  }
end