Class: TalkService::GetCountries_args
- Inherits:
-
Object
- Object
- TalkService::GetCountries_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/linerb/gen-rb/talk_service.rb
Constant Summary collapse
- COUNTRYGROUP =
2
- FIELDS =
{ COUNTRYGROUP => {:type => ::Thrift::Types::I32, :name => 'countryGroup', :enum_class => ::P0_a_e_a_b_e9} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
3099 |
# File 'lib/linerb/gen-rb/talk_service.rb', line 3099 def struct_fields; FIELDS; end |
#validate ⇒ Object
3101 3102 3103 3104 3105 |
# File 'lib/linerb/gen-rb/talk_service.rb', line 3101 def validate unless @countryGroup.nil? || ::P0_a_e_a_b_e9::VALID_VALUES.include?(@countryGroup) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field countryGroup!') end end |