Class: PayStatusInfo

Inherits:
Object
  • Object
show all
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

STATUS =
1
FIELDS =
{
  STATUS => {:type => ::Thrift::Types::I32, :name => 'status', :enum_class => ::G_a_b_z0_a_d_z}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



8423
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 8423

def struct_fields; FIELDS; end

#validateObject



8425
8426
8427
8428
8429
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 8425

def validate
  unless @status.nil? || ::G_a_b_z0_a_d_z::VALID_VALUES.include?(@status)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field status!')
  end
end