Class: Teapot::TempestDB::Node
- Inherits:
-
Object
- Object
- Teapot::TempestDB::Node
- 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_fields ⇒ Object
30 |
# File 'lib/gen/tempest_types.rb', line 30 def struct_fields; FIELDS; end |
#validate ⇒ Object
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 |