Method: Spider::Model::Element#condition

Defined in:
lib/spiderfw/model/element.rb

#conditionObject

The element’s Condition, if any. If a condition is set with the :condition attribute, the association to the element’s model will be filtered by it.



179
180
181
182
183
# File 'lib/spiderfw/model/element.rb', line 179

def condition
    cond = attributes[:condition]
    cond = Condition.new(cond) if (cond && !cond.is_a?(Condition))
    return cond
end