Class: ESM::Bot::DeliveryOverseer::Envelope
- Inherits:
-
Object
- Object
- ESM::Bot::DeliveryOverseer::Envelope
- Defined in:
- lib/esm/bot/delivery_overseer.rb
Instance Method Summary collapse
-
#initialize(**args) ⇒ Envelope
constructor
A new instance of Envelope.
Constructor Details
#initialize(**args) ⇒ Envelope
Returns a new instance of Envelope.
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/esm/bot/delivery_overseer.rb', line 7 def initialize(**args) defaults = {id: nil, wait: false} if args[:wait] defaults[:id] = SecureRandom.uuid defaults[:wait] = true end super(**defaults.merge(args)) end |