class SQLSearch::Atoms::Literal
Attributes
type[R]
value[R]
Public Class Methods
new(options)
click to toggle source
# File lib/sql_search_parser.rb, line 102 def initialize options @value = options[:value] @type = options[:type] end
Public Instance Methods
to_s()
click to toggle source
# File lib/sql_search_parser.rb, line 107 def to_s case type when :string then "'#{value}'" else "#{value}" end end