Class: Gossiperl::Client::Thrift::DigestExit
- Inherits:
-
Object
- Object
- Gossiperl::Client::Thrift::DigestExit
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gossiperl_client/headers.rb,
lib/gossiperl_client/thrift/gossiperl_types.rb
Constant Summary collapse
- NAME =
1
- HEARTBEAT =
2
- SECRET =
3
- FIELDS =
{ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}, HEARTBEAT => {:type => ::Thrift::Types::I64, :name => 'heartbeat'}, SECRET => {:type => ::Thrift::Types::STRING, :name => 'secret'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
105 |
# File 'lib/gossiperl_client/thrift/gossiperl_types.rb', line 105 def struct_fields; FIELDS; end |
#validate ⇒ Object
107 108 109 110 111 |
# File 'lib/gossiperl_client/thrift/gossiperl_types.rb', line 107 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field name is unset!') unless @name raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field heartbeat is unset!') unless @heartbeat raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field secret is unset!') unless @secret end |