Class: AccountIdentifier
- Inherits:
-
Object
- Object
- AccountIdentifier
- 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_c_u0_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_fields ⇒ Object
5308 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 5308 def struct_fields; FIELDS; end |
#validate ⇒ Object
5310 5311 5312 5313 5314 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 5310 def validate unless @type.nil? || ::G_a_c_u0_a_b_b::VALID_VALUES.include?(@type) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!') end end |