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 => ::J0_a_a_b_a_a_r},
  DEMOGRAPHICAGETYPE => {:type => ::Thrift::Types::I32, :name => 'demographicAgeType', :enum_class => ::J0_a_a_b_a_a_q},
  DEFAULTORDER => {:type => ::Thrift::Types::BOOL, :name => 'defaultOrder'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



9862
9863
9864
9865
9866
9867
9868
9869
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 9862

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