Class: BuddyStatusBar

Inherits:
Object
  • Object
show all
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 => ::P0_a_e_a_b_e3},
  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_fieldsObject



17814
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 17814

def struct_fields; FIELDS; end

#validateObject



17816
17817
17818
17819
17820
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 17816

def validate
  unless @displayType.nil? || ::P0_a_e_a_b_e3::VALID_VALUES.include?(@displayType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field displayType!')
  end
end