Class: Vangrail::Confirmation

Inherits:
Object
  • Object
show all
Defined in:
lib/vangrail/reference_monitor.rb

Overview

Opaque confirmation registered by a ReferenceMonitor for one exact Call.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actorObject (readonly)

Returns the value of attribute actor.



93
94
95
# File 'lib/vangrail/reference_monitor.rb', line 93

def actor
  @actor
end

#call_idObject (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

#fingerprintObject (readonly)

Returns the value of attribute fingerprint.



93
94
95
# File 'lib/vangrail/reference_monitor.rb', line 93

def fingerprint
  @fingerprint
end

#idObject (readonly)

Returns the value of attribute id.



93
94
95
# File 'lib/vangrail/reference_monitor.rb', line 93

def id
  @id
end