Class: ValidationResults
- Inherits:
-
Object
- Object
- ValidationResults
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/airavata_errors_types.rb,
lib/airavata_commons_types.rb
Constant Summary collapse
- VALIDATIONSTATE =
1
- VALIDATIONRESULTLIST =
2
- FIELDS =
{ VALIDATIONSTATE => {:type => ::Thrift::Types::BOOL, :name => 'validationState'}, VALIDATIONRESULTLIST => {:type => ::Thrift::Types::LIST, :name => 'validationResultList', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ValidatorResult}} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
259 |
# File 'lib/airavata_errors_types.rb', line 259 def struct_fields; FIELDS; end |
#validate ⇒ Object
261 262 263 264 |
# File 'lib/airavata_errors_types.rb', line 261 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field validationState is unset!') if @validationState.nil? raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field validationResultList is unset!') unless @validationResultList end |