Class: Clickwrap::Integrity::Timestamp::Verification
- Inherits:
-
Data
- Object
- Data
- Clickwrap::Integrity::Timestamp::Verification
- Defined in:
- lib/clickwrap/integrity/timestamp.rb
Overview
The result of checking a token. status carries the provider's own
validation vocabulary unchanged, because "valid according to this
authority today" is a narrower and more useful statement than "valid".
Instance Attribute Summary collapse
-
#checked ⇒ Object
readonly
Returns the value of attribute checked.
-
#detail ⇒ Object
readonly
Returns the value of attribute detail.
-
#protocol ⇒ Object
readonly
Returns the value of attribute protocol.
-
#provider_name ⇒ Object
readonly
Returns the value of attribute provider_name.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#verified ⇒ Object
readonly
Returns the value of attribute verified.
Instance Method Summary collapse
-
#initialize(checked: false, verified: false, status: nil, provider_name: nil, protocol: nil, detail: nil) ⇒ Verification
constructor
A new instance of Verification.
- #to_h ⇒ Object
Constructor Details
#initialize(checked: false, verified: false, status: nil, provider_name: nil, protocol: nil, detail: nil) ⇒ Verification
Returns a new instance of Verification.
72 73 74 75 |
# File 'lib/clickwrap/integrity/timestamp.rb', line 72 def initialize(checked: false, verified: false, status: nil, provider_name: nil, protocol: nil, detail: nil) super end |
Instance Attribute Details
#checked ⇒ Object (readonly)
Returns the value of attribute checked
71 72 73 |
# File 'lib/clickwrap/integrity/timestamp.rb', line 71 def checked @checked end |
#detail ⇒ Object (readonly)
Returns the value of attribute detail
71 72 73 |
# File 'lib/clickwrap/integrity/timestamp.rb', line 71 def detail @detail end |
#protocol ⇒ Object (readonly)
Returns the value of attribute protocol
71 72 73 |
# File 'lib/clickwrap/integrity/timestamp.rb', line 71 def protocol @protocol end |
#provider_name ⇒ Object (readonly)
Returns the value of attribute provider_name
71 72 73 |
# File 'lib/clickwrap/integrity/timestamp.rb', line 71 def provider_name @provider_name end |
#status ⇒ Object (readonly)
Returns the value of attribute status
71 72 73 |
# File 'lib/clickwrap/integrity/timestamp.rb', line 71 def status @status end |
#verified ⇒ Object (readonly)
Returns the value of attribute verified
71 72 73 |
# File 'lib/clickwrap/integrity/timestamp.rb', line 71 def verified @verified end |
Instance Method Details
#to_h ⇒ Object
77 78 79 80 81 82 83 84 85 86 |
# File 'lib/clickwrap/integrity/timestamp.rb', line 77 def to_h { "checked" => checked, "verified" => verified, "provider_reported_status" => status, "provider_name" => provider_name, "protocol" => protocol, "detail" => detail }.compact end |