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 => ::J0_a_e_a_b_d9} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
3241 |
# File 'lib/linerb/gen-rb/talk_service.rb', line 3241 def struct_fields; FIELDS; end |
#validate ⇒ Object
3243 3244 3245 3246 3247 |
# File 'lib/linerb/gen-rb/talk_service.rb', line 3243 def validate unless @countryGroup.nil? || ::J0_a_e_a_b_d9::VALID_VALUES.include?(@countryGroup) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field countryGroup!') end end |