Sha256: 5f49d745117a713a84b1ff2a05bafce918bb092a9550b68ed6f3d07987ce88b4

Contents?: true

Size: 444 Bytes

Versions: 21

Compression:

Stored size: 444 Bytes

Contents

module SurveyParser
  class Validation < SurveyParser::Base
  
    # Context, Conditional, Children
    attr_accessor :id, :answer_id, :parser
    attr_accessor :rule, :message
    has_children :validation_conditions
  
  
    def default_options
      {:rule => "A"}
    end
    def parse_args(args)
      args[0] || {}
    end
    def parse_opts(opts)
      {} # toss the method name and reference identifier by default
    end
    
  end
end

Version data entries

21 entries across 21 versions & 3 rubygems

Version Path
ccls-surveyor-1.0.0 script/surveyor/validation.rb
jakewendt-surveyor-0.11.3 script/surveyor/validation.rb
surveyor-0.14.5 script/surveyor/validation.rb
surveyor-0.14.4 script/surveyor/validation.rb
surveyor-0.14.3 script/surveyor/validation.rb
surveyor-0.14.2 script/surveyor/validation.rb
surveyor-0.14.1 script/surveyor/validation.rb
surveyor-0.14.0 script/surveyor/validation.rb
surveyor-0.13.0 script/surveyor/validation.rb
surveyor-0.12.1 script/surveyor/validation.rb
surveyor-0.11.0 script/surveyor/validation.rb
surveyor-0.10.0 script/surveyor/validation.rb
surveyor-0.9.10 script/surveyor/validation.rb
surveyor-0.9.9 script/surveyor/validation.rb
surveyor-0.9.8 script/surveyor/validation.rb
surveyor-0.9.7 script/surveyor/validation.rb
surveyor-0.9.6 script/surveyor/validation.rb
surveyor-0.9.5 script/surveyor/validation.rb
surveyor-0.9.4 script/surveyor/validation.rb
surveyor-0.9.3 script/surveyor/validation.rb