Class: Radar::API::AnalyzerConfig
- Inherits:
-
Object
- Object
- Radar::API::AnalyzerConfig
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/radar/api/radar_types.rb
Constant Summary collapse
- ID =
1- NAME =
2- RESULT_TYPE =
3- ACCEPTED_EVENTS =
4- FIELDS =
{ ID => {:type => ::Thrift::Types::STRING, :name => 'id'}, NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}, RESULT_TYPE => {:type => ::Thrift::Types::I32, :name => 'result_type', :enum_class => ::Radar::API::ResultType}, ACCEPTED_EVENTS => {:type => ::Thrift::Types::SET, :name => 'accepted_events', :element => {:type => ::Thrift::Types::I32, :enum_class => ::Radar::API::Event}} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
628 |
# File 'lib/radar/api/radar_types.rb', line 628 def struct_fields; FIELDS; end |
#validate ⇒ Object
630 631 632 633 634 |
# File 'lib/radar/api/radar_types.rb', line 630 def validate unless @result_type.nil? || ::Radar::API::ResultType::VALID_VALUES.include?(@result_type) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field result_type!') end end |