Class: Vangrail::Confirmation
- Inherits:
-
Object
- Object
- Vangrail::Confirmation
- Defined in:
- lib/vangrail/reference_monitor.rb
Overview
Opaque confirmation registered by a ReferenceMonitor for one exact Call.
Instance Attribute Summary collapse
-
#actor ⇒ Object
readonly
Returns the value of attribute actor.
-
#call_id ⇒ Object
readonly
Returns the value of attribute call_id.
-
#fingerprint ⇒ Object
readonly
Returns the value of attribute fingerprint.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(call, actor) ⇒ Confirmation
constructor
A new instance of Confirmation.
Constructor Details
#initialize(call, actor) ⇒ Confirmation
Returns a new instance of Confirmation.
95 96 97 98 99 100 101 |
# File 'lib/vangrail/reference_monitor.rb', line 95 def initialize(call, actor) @id = SecureRandom.uuid.freeze @call_id = call.id @fingerprint = call.fingerprint.freeze @actor = actor freeze end |
Instance Attribute Details
#actor ⇒ Object (readonly)
Returns the value of attribute actor.
93 94 95 |
# File 'lib/vangrail/reference_monitor.rb', line 93 def actor @actor end |
#call_id ⇒ Object (readonly)
Returns the value of attribute call_id.
93 94 95 |
# File 'lib/vangrail/reference_monitor.rb', line 93 def call_id @call_id end |
#fingerprint ⇒ Object (readonly)
Returns the value of attribute fingerprint.
93 94 95 |
# File 'lib/vangrail/reference_monitor.rb', line 93 def fingerprint @fingerprint end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
93 94 95 |
# File 'lib/vangrail/reference_monitor.rb', line 93 def id @id end |