Sha256: ad2d070a5def07a099900f2f993e31f6f1b737bce81ca5593d991db0098e83c3
Contents?: true
Size: 660 Bytes
Versions: 21
Compression:
Stored size: 660 Bytes
Contents
module SurveyParser class ValidationCondition < SurveyParser::Base # Context, Conditional, Value, Reference attr_accessor :id, :validation_id, :rule_key, :parser attr_accessor :operator attr_accessor :question_id, :answer_id, :datetime_value, :integer_value, :float_value, :unit, :text_value, :string_value, :response_other, :regexp attr_accessor :question_reference, :answer_reference def default_options { :operator => "==" } end def parse_args(args) a0, a1 = args {:operator => a0}.merge(a1 || {}) end def parse_opts(opts) {:rule_key => opts[:reference_identifier]} end end end
Version data entries
21 entries across 21 versions & 3 rubygems