Module: Validation

Included in:
Quickbooks::XSD::Element, Quickbooks::XSD::Sequence
Defined in:
lib/quickbooks/xsd/validation.rb

Instance Method Summary collapse

Instance Method Details

#validate_these(objects) ⇒ Object



82
83
84
85
86
87
88
# File 'lib/quickbooks/xsd/validation.rb', line 82

def validate_these(objects)
  puts "#{$DEBUG<<"\t"}Validating Objects..." if $DEBUG
  r = objects.inject(Valean.new(nil, true, :exists => true)) {|r,object| r << validate(object); r}
  $DEBUG.chop! if $DEBUG
  puts "#{$DEBUG}\t- #{r}" if $DEBUG
  r
end