Class: MyRank
- Inherits:
-
Object
- Object
- MyRank
- 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_m_a0_f0}, 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_fields ⇒ Object
12535 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 12535 def struct_fields; FIELDS; end |
#validate ⇒ Object
12537 12538 12539 12540 12541 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 12537 def validate unless @rankType.nil? || ::G_a_m_a0_f0::VALID_VALUES.include?(@rankType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field rankType!') end end |