Class: SocialLogin
- Inherits:
-
Object
- Object
- SocialLogin
- 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
- TYPE =
1
- ACCESSTOKEN =
2
- COUNTRYCODE =
3
- FIELDS =
{ TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::G_a_b_z0_a_b_o1}, ACCESSTOKEN => {:type => ::Thrift::Types::STRING, :name => 'accessToken'}, COUNTRYCODE => {:type => ::Thrift::Types::STRING, :name => 'countryCode'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
6739 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 6739 def struct_fields; FIELDS; end |
#validate ⇒ Object
6741 6742 6743 6744 6745 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 6741 def validate unless @type.nil? || ::G_a_b_z0_a_b_o1::VALID_VALUES.include?(@type) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!') end end |