Class: Hexspace::TTypeDesc

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

Constant Summary collapse

TYPES =
1
FIELDS =
{
  TYPES => {:type => ::Thrift::Types::LIST, :name => 'types', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Hexspace::TTypeEntry}}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



535
# File 'lib/hexspace/tcli_service_types.rb', line 535

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


537
538
539
# File 'lib/hexspace/tcli_service_types.rb', line 537

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field types is unset!') unless @types
end