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 => ::J0_a_e_a_b_de}, REWARDCOIN => {:type => ::Thrift::Types::I32, :name => 'rewardCoin'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
12969 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 12969 def struct_fields; FIELDS; end |
#validate ⇒ Object
12971 12972 12973 12974 12975 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 12971 def validate unless @type.nil? || ::J0_a_e_a_b_de::VALID_VALUES.include?(@type) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!') end end |