Class: Teapot::TempestDB::Node

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

Constant Summary collapse

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

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



30
# File 'lib/gen/tempest_types.rb', line 30

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


32
33
34
35
# File 'lib/gen/tempest_types.rb', line 32

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