Class: GetAcctVerifMethodResponse

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

AVAILABLEMETHOD =
1
SAMEACCOUNTFROMAUTHFACTOR =
2
FIELDS =
{
  AVAILABLEMETHOD => {:type => ::Thrift::Types::I32, :name => 'availableMethod', :enum_class => ::G_a_b_z0_a_b_c},
  SAMEACCOUNTFROMAUTHFACTOR => {:type => ::Thrift::Types::BOOL, :name => 'sameAccountFromAuthFactor'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



6935
6936
6937
6938
6939
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 6935

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