Class: Gossiperl::Client::Thrift::DigestEvent
- Inherits:
-
Object
- Object
- Gossiperl::Client::Thrift::DigestEvent
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gossiperl_client/headers.rb,
lib/gossiperl_client/thrift/gossiperl_types.rb
Constant Summary collapse
- EVENT_TYPE =
1
- EVENT_OBJECT =
2
- HEARTBEAT =
3
- FIELDS =
{ EVENT_TYPE => {:type => ::Thrift::Types::STRING, :name => 'event_type'}, EVENT_OBJECT => {:type => ::Thrift::Types::STRING, :name => 'event_object'}, HEARTBEAT => {:type => ::Thrift::Types::I64, :name => 'heartbeat'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
365 |
# File 'lib/gossiperl_client/thrift/gossiperl_types.rb', line 365 def struct_fields; FIELDS; end |
#validate ⇒ Object
367 368 369 370 371 |
# File 'lib/gossiperl_client/thrift/gossiperl_types.rb', line 367 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field event_type is unset!') unless @event_type raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field event_object is unset!') unless @event_object raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field heartbeat is unset!') unless @heartbeat end |