Class: EmailConfirmationSession

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

EMAILCONFIRMATIONTYPE =
1
VERIFIER =
2
TARGETEMAIL =
3
FIELDS =
{
  EMAILCONFIRMATIONTYPE => {:type => ::Thrift::Types::I32, :name => 'emailConfirmationType', :enum_class => ::P0_a_e_a_b_ba},
  VERIFIER => {:type => ::Thrift::Types::STRING, :name => 'verifier'},
  TARGETEMAIL => {:type => ::Thrift::Types::STRING, :name => 'targetEmail'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



13357
13358
13359
13360
13361
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 13357

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