Class: CreateDocumentResponse

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/gen-rb/relevanced_protocol_types.rb

Constant Summary collapse

ID =
1
FIELDS =
{
  ID => {:type => ::Thrift::Types::STRING, :name => 'id'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



306
# File 'lib/gen-rb/relevanced_protocol_types.rb', line 306

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


308
309
310
# File 'lib/gen-rb/relevanced_protocol_types.rb', line 308

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