Class: PaymentUserInfoDigest

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

USERID =
1
STATUS =
2
COUNTRY =
3
GRADE =
4
PASSWORDVERSION =
5
JOINED =
6
FIELDS =
{
  USERID => {:type => ::Thrift::Types::STRING, :name => 'userId'},
  STATUS => {:type => ::Thrift::Types::I32, :name => 'status', :enum_class => ::G_a_b_z0_a_d_e8},
  COUNTRY => {:type => ::Thrift::Types::STRING, :name => 'country'},
  GRADE => {:type => ::Thrift::Types::I32, :name => 'grade', :enum_class => ::G_a_b_z0_a_d_b8},
  PASSWORDVERSION => {:type => ::Thrift::Types::I32, :name => 'passwordVersion', :enum_class => ::G_a_b_z0_a_d_s1},
  JOINED => {:type => ::Thrift::Types::BOOL, :name => 'joined'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 8738

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