Class: Clickwrap::Integrity::Anchor::Verification
- Inherits:
-
Data
- Object
- Data
- Clickwrap::Integrity::Anchor::Verification
- 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
-
#checked ⇒ Object
readonly
Returns the value of attribute checked.
-
#detail ⇒ Object
readonly
Returns the value of attribute detail.
-
#provider_name ⇒ Object
readonly
Returns the value of attribute provider_name.
-
#reference ⇒ Object
readonly
Returns the value of attribute reference.
-
#verified ⇒ Object
readonly
Returns the value of attribute verified.
Instance Method Summary collapse
-
#initialize(checked: false, verified: false, reference: nil, provider_name: nil, detail: nil) ⇒ Verification
constructor
A new instance of Verification.
- #to_h ⇒ Object
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
#checked ⇒ Object (readonly)
Returns the value of attribute checked
62 63 64 |
# File 'lib/clickwrap/integrity/anchor.rb', line 62 def checked @checked end |
#detail ⇒ Object (readonly)
Returns the value of attribute detail
62 63 64 |
# File 'lib/clickwrap/integrity/anchor.rb', line 62 def detail @detail end |
#provider_name ⇒ Object (readonly)
Returns the value of attribute provider_name
62 63 64 |
# File 'lib/clickwrap/integrity/anchor.rb', line 62 def provider_name @provider_name end |
#reference ⇒ Object (readonly)
Returns the value of attribute reference
62 63 64 |
# File 'lib/clickwrap/integrity/anchor.rb', line 62 def reference @reference end |
#verified ⇒ Object (readonly)
Returns the value of attribute verified
62 63 64 |
# File 'lib/clickwrap/integrity/anchor.rb', line 62 def verified @verified end |
Instance Method Details
#to_h ⇒ Object
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 |