class Ansr::Arel::Nodes::Facet
Public Instance Methods
limit(*val)
click to toggle source
# File lib/ansr/arel/nodes.rb, line 32 def limit(*val) @opts[:limit] = val.first.to_s if val.first @opts[:limit] end
order(*val)
click to toggle source
# File lib/ansr/arel/nodes.rb, line 19 def order(*val) if val.first val = val.first.downcase.to_sym if String === val @opts[:order] = val if val == :asc or val == :desc end @opts[:order] end
prefix(*val)
click to toggle source
# File lib/ansr/arel/nodes.rb, line 27 def prefix(*val) @opts[:prefix] = val.first.to_s if val.first @opts[:prefix] end