Class: CadenceThrift::TaskList
- Inherits:
-
Object
- Object
- CadenceThrift::TaskList
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/thrift/shared_types.rb,
lib/gen/thrift/shared_types.rb
Constant Summary collapse
- NAME =
10
- KIND =
20
- FIELDS =
{ NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true}, KIND => {:type => ::Thrift::Types::I32, :name => 'kind', :optional => true, :enum_class => ::CadenceThrift::TaskListKind} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
931 |
# File 'lib/gen/thrift/shared_types.rb', line 931 def struct_fields; FIELDS; end |
#validate ⇒ Object
933 934 935 936 937 |
# File 'lib/gen/thrift/shared_types.rb', line 933 def validate unless @kind.nil? || ::CadenceThrift::TaskListKind::VALID_VALUES.include?(@kind) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field kind!') end end |