Class: Jp::JobPool::Add_args
- Inherits:
-
Object
- Object
- Jp::JobPool::Add_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/rb/jp/gen-rb/job_pool.rb
Overview
HELPER FUNCTIONS AND STRUCTURES
Constant Summary collapse
- POOL_NAME =
1
- MESSAGE =
2
- FIELDS =
{ POOL_NAME => {:type => ::Thrift::Types::STRING, :name => 'pool_name'}, MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message', :binary => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
117 |
# File 'lib/rb/jp/gen-rb/job_pool.rb', line 117 def struct_fields; FIELDS; end |
#validate ⇒ Object
119 120 121 122 |
# File 'lib/rb/jp/gen-rb/job_pool.rb', line 119 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field pool_name is unset!') unless @pool_name raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message end |