Class: Julewire::Core::Propagation::Carrier::Extracted
- Inherits:
-
Object
- Object
- Julewire::Core::Propagation::Carrier::Extracted
- Defined in:
- lib/julewire/core/propagation/carrier.rb
Instance Attribute Summary collapse
- #envelope ⇒ Object readonly
- #error ⇒ Object readonly
- #reason ⇒ Object readonly
- #status ⇒ Object readonly
Instance Method Summary collapse
- #failure? ⇒ Boolean
-
#initialize(envelope:, status:, reason: nil, error: nil) ⇒ Extracted
constructor
A new instance of Extracted.
Constructor Details
#initialize(envelope:, status:, reason: nil, error: nil) ⇒ Extracted
Returns a new instance of Extracted.
18 19 20 21 22 23 |
# File 'lib/julewire/core/propagation/carrier.rb', line 18 def initialize(envelope:, status:, reason: nil, error: nil) @envelope = envelope @status = status @reason = reason @error = error end |
Instance Attribute Details
#envelope ⇒ Object (readonly)
16 17 18 |
# File 'lib/julewire/core/propagation/carrier.rb', line 16 def envelope @envelope end |
#error ⇒ Object (readonly)
16 17 18 |
# File 'lib/julewire/core/propagation/carrier.rb', line 16 def error @error end |
#reason ⇒ Object (readonly)
16 17 18 |
# File 'lib/julewire/core/propagation/carrier.rb', line 16 def reason @reason end |
#status ⇒ Object (readonly)
16 17 18 |
# File 'lib/julewire/core/propagation/carrier.rb', line 16 def status @status end |
Instance Method Details
#failure? ⇒ Boolean
25 |
# File 'lib/julewire/core/propagation/carrier.rb', line 25 def failure? = !error.nil? |