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_b_z0_a_d_m} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
7661 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 7661 def struct_fields; FIELDS; end |
#validate ⇒ Object
7663 7664 7665 7666 7667 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 7663 def validate unless @status.nil? || ::G_a_b_z0_a_d_m::VALID_VALUES.include?(@status) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field status!') end end |