Class: TalkService::GetCountries_args

Inherits:
Object
  • Object
show all
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_fieldsObject



3222
# File 'lib/linerb/gen-rb/talk_service.rb', line 3222

def struct_fields; FIELDS; end

#validateObject



3224
3225
3226
3227
3228
# File 'lib/linerb/gen-rb/talk_service.rb', line 3224

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