Class: Clickwrap::Integrity::AttestationReconciler::Outcome

Inherits:
Data
  • Object
show all
Defined in:
lib/clickwrap/integrity/attestation_reconciler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attestation_idObject (readonly)

Returns the value of attribute attestation_id

Returns:

  • (Object)

    the current value of attestation_id



17
18
19
# File 'lib/clickwrap/integrity/attestation_reconciler.rb', line 17

def attestation_id
  @attestation_id
end

#event_idObject (readonly)

Returns the value of attribute event_id

Returns:

  • (Object)

    the current value of event_id



17
18
19
# File 'lib/clickwrap/integrity/attestation_reconciler.rb', line 17

def event_id
  @event_id
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



17
18
19
# File 'lib/clickwrap/integrity/attestation_reconciler.rb', line 17

def kind
  @kind
end

#stateObject (readonly)

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



17
18
19
# File 'lib/clickwrap/integrity/attestation_reconciler.rb', line 17

def state
  @state
end

Instance Method Details

#recorded?Boolean

Returns:

  • (Boolean)


18
# File 'lib/clickwrap/integrity/attestation_reconciler.rb', line 18

def recorded? = attestation_id.present?

#to_hObject



20
21
22
23
24
25
26
27
# File 'lib/clickwrap/integrity/attestation_reconciler.rb', line 20

def to_h
  {
    "event_id" => event_id,
    "kind" => kind,
    "state" => state,
    "attestation_id" => attestation_id
  }.compact
end