Class: WaterDrop::Contracts::Message
- Inherits:
-
Karafka::Core::Contractable::Contract
- Object
- Karafka::Core::Contractable::Contract
- WaterDrop::Contracts::Message
- Defined in:
- lib/waterdrop/contracts/message.rb
Overview
Contract with validation rules for validating that all the message options that we provide to producer are valid and usable
Instance Attribute Summary collapse
-
#max_payload_size ⇒ Object
readonly
Returns the value of attribute max_payload_size.
Instance Method Summary collapse
-
#initialize(max_payload_size:) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(max_payload_size:) ⇒ Message
Returns a new instance of Message.
24 25 26 27 |
# File 'lib/waterdrop/contracts/message.rb', line 24 def initialize(max_payload_size:) super() @max_payload_size = max_payload_size end |
Instance Attribute Details
#max_payload_size ⇒ Object (readonly)
Returns the value of attribute max_payload_size.
21 22 23 |
# File 'lib/waterdrop/contracts/message.rb', line 21 def max_payload_size @max_payload_size end |