Class: ClientNetworkStatus
- Inherits:
-
Object
- Object
- ClientNetworkStatus
- 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
- NETWORKTYPE =
1
- FIELDS =
{ NETWORKTYPE => {:type => ::Thrift::Types::I32, :name => 'networkType', :enum_class => ::J0_a_e_a_b_s7} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
14168 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 14168 def struct_fields; FIELDS; end |
#validate ⇒ Object
14170 14171 14172 14173 14174 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 14170 def validate unless @networkType.nil? || ::J0_a_e_a_b_s7::VALID_VALUES.include?(@networkType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field networkType!') end end |