Module: WhereableClause::ConditionBetween

Defined in:
lib/whereable_clause.rb

Instance Method Summary collapse

Instance Method Details

#to_hObject

Hash for between operator



51
52
53
54
55
56
57
58
# File 'lib/whereable_clause.rb', line 51

def to_h
  {
    between: {
      column: column.to_s,
      literals: left.to_s..right.to_s,
    },
  }
end