Class: Clickwrap::Integrity::Anchor::Verification

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

Overview

verified: false with a detail is likewise ordinary. "We could not check" and "we checked and it does not match" are different answers, and checked keeps them apart.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(checked: false, verified: false, reference: nil, provider_name: nil, detail: nil) ⇒ Verification

Returns a new instance of Verification.



63
64
65
# File 'lib/clickwrap/integrity/anchor.rb', line 63

def initialize(checked: false, verified: false, reference: nil, provider_name: nil, detail: nil)
  super
end

Instance Attribute Details

#checkedObject (readonly)

Returns the value of attribute checked

Returns:

  • (Object)

    the current value of checked



62
63
64
# File 'lib/clickwrap/integrity/anchor.rb', line 62

def checked
  @checked
end

#detailObject (readonly)

Returns the value of attribute detail

Returns:

  • (Object)

    the current value of detail



62
63
64
# File 'lib/clickwrap/integrity/anchor.rb', line 62

def detail
  @detail
end

#provider_nameObject (readonly)

Returns the value of attribute provider_name

Returns:

  • (Object)

    the current value of provider_name



62
63
64
# File 'lib/clickwrap/integrity/anchor.rb', line 62

def provider_name
  @provider_name
end

#referenceObject (readonly)

Returns the value of attribute reference

Returns:

  • (Object)

    the current value of reference



62
63
64
# File 'lib/clickwrap/integrity/anchor.rb', line 62

def reference
  @reference
end

#verifiedObject (readonly)

Returns the value of attribute verified

Returns:

  • (Object)

    the current value of verified



62
63
64
# File 'lib/clickwrap/integrity/anchor.rb', line 62

def verified
  @verified
end

Instance Method Details

#to_hObject



67
68
69
70
71
72
73
74
75
# File 'lib/clickwrap/integrity/anchor.rb', line 67

def to_h
  {
    "checked" => checked,
    "verified" => verified,
    "reference" => reference,
    "provider_name" => provider_name,
    "detail" => detail
  }.compact
end