Class: MyRank

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

RANKTYPE =
1
RANKNAME =
2
ICONURL =
3
LINKURL =
4
MYRANKBENEFIT =
5
ANIMATEDICONURL =
6
FIELDS =
{
  RANKTYPE => {:type => ::Thrift::Types::I32, :name => 'rankType', :enum_class => ::G_a_r1_x_a0},
  RANKNAME => {:type => ::Thrift::Types::STRING, :name => 'rankName'},
  ICONURL => {:type => ::Thrift::Types::STRING, :name => 'iconUrl'},
  LINKURL => {:type => ::Thrift::Types::STRING, :name => 'linkUrl'},
  MYRANKBENEFIT => {:type => ::Thrift::Types::STRUCT, :name => 'myRankBenefit', :class => ::MyRankBenefit},
  ANIMATEDICONURL => {:type => ::Thrift::Types::STRING, :name => 'animatedIconUrl'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



11621
11622
11623
11624
11625
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 11621

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