Class: StandardId::Identifier
Instance Method Summary
collapse
Instance Method Details
#unverify! ⇒ Object
28
29
30
|
# File 'app/models/standard_id/identifier.rb', line 28
def unverify!
update!(verified_at: nil)
end
|
#verified? ⇒ Boolean
19
20
21
|
# File 'app/models/standard_id/identifier.rb', line 19
def verified?
verified_at.present?
end
|
#verify! ⇒ Object
23
24
25
26
|
# File 'app/models/standard_id/identifier.rb', line 23
def verify!
update!(verified_at: Time.current)
emit_verification_succeeded
end
|