Class: MyChatapp
- Inherits:
-
Object
- Object
- MyChatapp
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/linerb/gen-rb/takagi_chan_types.rb,
lib/linerb/gen-rb/takagi_chan_types.rb
Constant Summary collapse
- APP =
1
- CATEGORY =
2
- PRIORITY =
3
- FIELDS =
{ APP => {:type => ::Thrift::Types::STRUCT, :name => 'app', :class => ::Chatapp}, CATEGORY => {:type => ::Thrift::Types::I32, :name => 'category', :enum_class => ::G_a_b0_a_a_c}, PRIORITY => {:type => ::Thrift::Types::I64, :name => 'priority', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
4295 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 4295 def struct_fields; FIELDS; end |
#validate ⇒ Object
4297 4298 4299 4300 4301 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 4297 def validate unless @category.nil? || ::G_a_b0_a_a_c::VALID_VALUES.include?(@category) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field category!') end end |