Class: ThriftType

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/thrift/reflection_limited_types.rb

Constant Summary collapse

IS_CONTAINER =
1
SIMPLE_TYPE =
2
CONTAINER_TYPE =
3
FIELDS =
{
  IS_CONTAINER => {:type => ::Thrift::Types::BOOL, :name => 'is_container'},
  SIMPLE_TYPE => {:type => ::Thrift::Types::STRUCT, :name => 'simple_type', :class => SimpleType, :optional => true},
  CONTAINER_TYPE => {:type => ::Thrift::Types::STRUCT, :name => 'container_type', :class => ContainerType, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



83
# File 'lib/thrift/reflection_limited_types.rb', line 83

def struct_fields; FIELDS; end

#validateObject



85
86
# File 'lib/thrift/reflection_limited_types.rb', line 85

def validate
end