Class: IdentityCredential
- Inherits:
-
Object
- Object
- IdentityCredential
- 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
- PROVIDER =
1
- IDENTIFIER =
2
- PASSWORD =
3
- FIELDS =
{ PROVIDER => {:type => ::Thrift::Types::I32, :name => 'provider', :enum_class => ::P0_a_e_a_b_sc}, IDENTIFIER => {:type => ::Thrift::Types::STRING, :name => 'identifier'}, PASSWORD => {:type => ::Thrift::Types::STRING, :name => 'password'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
16365 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 16365 def struct_fields; FIELDS; end |
#validate ⇒ Object
16367 16368 16369 16370 16371 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 16367 def validate unless @provider.nil? || ::P0_a_e_a_b_sc::VALID_VALUES.include?(@provider) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field provider!') end end |