Class: AccountIdentifier

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

TYPE =
1
IDENTIFIER =
2
COUNTRYCODE =
11
FIELDS =
{
  TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::G_a_b_z0_a_b_b},
  IDENTIFIER => {:type => ::Thrift::Types::STRING, :name => 'identifier'},
  COUNTRYCODE => {:type => ::Thrift::Types::STRING, :name => 'countryCode', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



6606
6607
6608
6609
6610
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 6606

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