Module: NoSE::StatementConditions
Overview
Used to add a list of conditions to a Statement
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#conditions ⇒ Object
readonly
Returns the value of attribute conditions.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#conditions ⇒ Object (readonly)
Returns the value of attribute conditions.
46 47 48 |
# File 'lib/nose/statements.rb', line 46 def conditions @conditions end |
Class Method Details
.included(base) ⇒ Object
56 57 58 |
# File 'lib/nose/statements.rb', line 56 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#populate_conditions(params) ⇒ void
This method returns an undefined value.
49 50 51 52 53 54 |
# 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 |