Class: PaymentEligibleFriendStatus
- Inherits:
-
Object
- Object
- PaymentEligibleFriendStatus
- 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
- MID =
1
- STATUS =
2
- FIELDS =
{ MID => {:type => ::Thrift::Types::STRING, :name => 'mid'}, STATUS => {:type => ::Thrift::Types::I32, :name => 'status', :enum_class => ::G_a_c_u0_a_d_m} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
6097 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 6097 def struct_fields; FIELDS; end |
#validate ⇒ Object
6099 6100 6101 6102 6103 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 6099 def validate unless @status.nil? || ::G_a_c_u0_a_d_m::VALID_VALUES.include?(@status) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field status!') end end |