Class: SQLSearch::Atoms::InValues

Inherits:
Object
  • Object
show all
Defined in:
lib/sql_search_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ InValues

Returns a new instance of InValues.



66
67
68
# File 'lib/sql_search_parser.rb', line 66

def initialize options
  @values = options[:values]
end

Instance Attribute Details

#valuesObject (readonly)

Returns the value of attribute values.



65
66
67
# File 'lib/sql_search_parser.rb', line 65

def values
  @values
end

Instance Method Details

#to_sObject



70
71
72
# File 'lib/sql_search_parser.rb', line 70

def to_s
  "(#{values.join(', ')})"
end