Class: CommunityUser
- Inherits:
-
Object
- Object
- CommunityUser
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/credential_store_data_models_types.rb
Constant Summary collapse
- GATEWAYNAME =
1
- USERNAME =
2
- USEREMAIL =
3
- FIELDS =
{ GATEWAYNAME => {:type => ::Thrift::Types::STRING, :name => 'gatewayName'}, USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username'}, USEREMAIL => {:type => ::Thrift::Types::STRING, :name => 'userEmail'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
98 |
# File 'lib/credential_store_data_models_types.rb', line 98 def struct_fields; FIELDS; end |
#validate ⇒ Object
100 101 102 103 104 |
# File 'lib/credential_store_data_models_types.rb', line 100 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field gatewayName is unset!') unless @gatewayName raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field username is unset!') unless @username raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field userEmail is unset!') unless @userEmail end |