module WhereableClause::ConditionBetween

Public Instance Methods

to_h() click to toggle source

Hash for between operator

# File lib/whereable_clause.rb, line 51
def to_h
  {
    between: {
      column: column.to_s,
      literals: left.to_s..right.to_s,
    },
  }
end