class Messagebus::Thrift::MessagePayload
Constants
- BINARYPAYLOAD
- FIELDS
- MESSAGEFORMAT
- STRINGPAYLOAD
Public Instance Methods
binary?()
click to toggle source
# File lib/messagebus/messagebus_types.rb, line 62 def binary? @messageFormat == Messagebus::Thrift::MessagePayloadType::BINARY end
json?()
click to toggle source
# File lib/messagebus/messagebus_types.rb, line 66 def json? @messageFormat == Messagebus::Thrift::MessagePayloadType::JSON end
string?()
click to toggle source
# File lib/messagebus/messagebus_types.rb, line 70 def string? @messageFormat == Messagebus::Thrift::MessagePayloadType::STRING end
struct_fields()
click to toggle source
# File lib/messagebus/messagebus_types.rb, line 60 def struct_fields; FIELDS; end
validate()
click to toggle source
# File lib/messagebus/messagebus_types.rb, line 74 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field messageFormat is unset!') unless @messageFormat unless @messageFormat.nil? || Messagebus::Thrift::MessagePayloadType::VALID_VALUES.include?(@messageFormat) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field messageFormat!') end end