Class: BuddyStatusBar
- Inherits:
-
Object
- Object
- BuddyStatusBar
- 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
- LABEL =
1
- DISPLAYTYPE =
2
- TITLE =
3
- ICONURL =
4
- LINKURL =
5
- FIELDS =
{ LABEL => {:type => ::Thrift::Types::STRING, :name => 'label'}, DISPLAYTYPE => {:type => ::Thrift::Types::I32, :name => 'displayType', :enum_class => ::J0_a_e_a_b_d3}, TITLE => {:type => ::Thrift::Types::STRING, :name => 'title'}, ICONURL => {:type => ::Thrift::Types::STRING, :name => 'iconUrl'}, LINKURL => {:type => ::Thrift::Types::STRING, :name => 'linkUrl'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
16723 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 16723 def struct_fields; FIELDS; end |
#validate ⇒ Object
16725 16726 16727 16728 16729 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 16725 def validate unless @displayType.nil? || ::J0_a_e_a_b_d3::VALID_VALUES.include?(@displayType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field displayType!') end end |