Class: LIFFMenuColor
- Inherits:
-
Object
- Object
- LIFFMenuColor
- 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
- ICONCOLOR =
1
- STATUSBARCOLOR =
2
- FIELDS =
{ ICONCOLOR => {:type => ::Thrift::Types::I32, :name => 'iconColor', :optional => true}, STATUSBARCOLOR => {:type => ::Thrift::Types::I32, :name => 'statusBarColor', :optional => true, :enum_class => ::G_a_h_z0_a_a} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
4465 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 4465 def struct_fields; FIELDS; end |
#validate ⇒ Object
4467 4468 4469 4470 4471 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 4467 def validate unless @statusBarColor.nil? || ::G_a_h_z0_a_a::VALID_VALUES.include?(@statusBarColor) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field statusBarColor!') end end |