Class: ExperimentSubmitEvent

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

Constant Summary collapse

EXPERIMENTID =
1
GATEWAYID =
2
FIELDS =
{
  EXPERIMENTID => {:type => ::Thrift::Types::STRING, :name => 'experimentId'},
  GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayId'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



262
# File 'lib/messaging_events_types.rb', line 262

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


264
265
266
267
# File 'lib/messaging_events_types.rb', line 264

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