Class: Storm::DRPCRequest
- Inherits:
-
Object
- Object
- Storm::DRPCRequest
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/storm/thrift/storm_types.rb
Constant Summary collapse
- FUNC_ARGS =
1
- REQUEST_ID =
2
- FIELDS =
{ FUNC_ARGS => {:type => ::Thrift::Types::STRING, :name => 'func_args'}, REQUEST_ID => {:type => ::Thrift::Types::STRING, :name => 'request_id'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
766 |
# File 'lib/storm/thrift/storm_types.rb', line 766 def struct_fields; FIELDS; end |
#validate ⇒ Object
768 769 770 771 |
# File 'lib/storm/thrift/storm_types.rb', line 768 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field func_args is unset!') unless @func_args raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field request_id is unset!') unless @request_id end |