module NoSE::StatementConditions
Used to add a list of conditions to a {Statement}
Attributes
conditions[R]
Public Class Methods
included(base)
click to toggle source
# File lib/nose/statements.rb, line 56 def self.included(base) base.extend ClassMethods end
Public Instance Methods
populate_conditions(params)
click to toggle source
@return [void]
# File lib/nose/statements.rb, line 49 def populate_conditions(params) @conditions = params[:conditions] @eq_fields = conditions.each_value.reject(&:range?).map(&:field).to_set @range_field = conditions.each_value.find(&:range?) @range_field = @range_field.field unless @range_field.nil? end