Class: DemographicType

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

DEMOGRAPHICGENDERTYPE =
1
DEMOGRAPHICAGETYPE =
2
DEFAULTORDER =
3
FIELDS =
{
  DEMOGRAPHICGENDERTYPE => {:type => ::Thrift::Types::I32, :name => 'demographicGenderType', :enum_class => ::P0_a_a_b_a_a_p},
  DEMOGRAPHICAGETYPE => {:type => ::Thrift::Types::I32, :name => 'demographicAgeType', :enum_class => ::P0_a_a_b_a_a_o},
  DEFAULTORDER => {:type => ::Thrift::Types::BOOL, :name => 'defaultOrder'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



10541
10542
10543
10544
10545
10546
10547
10548
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 10541

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