Class: ThRegionalInfo

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

FIRSTNAME =
1
LASTNAME =
2
IDENTIFICATIONNO =
3
IDENTIFICATIONTYPE =
4
FIELDS =
{
  FIRSTNAME => {:type => ::Thrift::Types::STRING, :name => 'firstName'},
  LASTNAME => {:type => ::Thrift::Types::STRING, :name => 'lastName'},
  IDENTIFICATIONNO => {:type => ::Thrift::Types::STRING, :name => 'identificationNo'},
  IDENTIFICATIONTYPE => {:type => ::Thrift::Types::I32, :name => 'identificationType', :enum_class => ::G_a_b_z0_a_d_i1}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



8092
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 8092

def struct_fields; FIELDS; end

#validateObject



8094
8095
8096
8097
8098
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 8094

def validate
  unless @identificationType.nil? || ::G_a_b_z0_a_d_i1::VALID_VALUES.include?(@identificationType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field identificationType!')
  end
end