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