Class: XML_XSI::Schema::Erroneous
- Inherits:
-
Object
- Object
- XML_XSI::Schema::Erroneous
- Defined in:
- lib/validate_xml_xsi.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(ex) ⇒ Erroneous
constructor
A new instance of Erroneous.
Constructor Details
#initialize(ex) ⇒ Erroneous
Returns a new instance of Erroneous.
95 96 97 98 |
# File 'lib/validate_xml_xsi.rb', line 95 def initialize(ex) errs = ex.respond_to?(:aggregate) ? ex.aggregate : [ex] @errors = errs.map { |err| ValidationError.new(:XSD, err) } end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
94 95 96 |
# File 'lib/validate_xml_xsi.rb', line 94 def errors @errors end |