Class: CoinPayLoad
- Inherits:
-
Object
- Object
- CoinPayLoad
- 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
- PAYCOIN =
1
- FREECOIN =
2
- TYPE =
3
- REWARDCOIN =
4
- FIELDS =
{ PAYCOIN => {:type => ::Thrift::Types::I32, :name => 'payCoin'}, FREECOIN => {:type => ::Thrift::Types::I32, :name => 'freeCoin'}, TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::P0_a_e_a_b_ee}, REWARDCOIN => {:type => ::Thrift::Types::I32, :name => 'rewardCoin'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
14218 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 14218 def struct_fields; FIELDS; end |
#validate ⇒ Object
14220 14221 14222 14223 14224 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 14220 def validate unless @type.nil? || ::P0_a_e_a_b_ee::VALID_VALUES.include?(@type) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!') end end |