Class: Jp::Job
- Inherits:
-
Object
- Object
- Jp::Job
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/rb/jp/gen-rb/jp_types.rb
Constant Summary collapse
- MESSAGE =
1
- ID =
2
- FIELDS =
{ MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message', :binary => true}, ID => {:type => ::Thrift::Types::STRING, :name => 'id', :binary => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
21 |
# File 'lib/rb/jp/gen-rb/jp_types.rb', line 21 def struct_fields; FIELDS; end |
#validate ⇒ Object
23 24 25 26 |
# File 'lib/rb/jp/gen-rb/jp_types.rb', line 23 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id end |