class Postmortem::Identity
Provides an HTML document that announces a unique ID to a parent page via JS message events.
Public Instance Methods
content()
click to toggle source
# File lib/postmortem/identity.rb, line 6 def content ERB.new(File.read(path), nil, '-').result(binding) end
Private Instance Methods
path()
click to toggle source
# File lib/postmortem/identity.rb, line 16 def path File.expand_path(File.join(__dir__, '..', '..', 'layout', 'postmortem_identity.html.erb')) end
uuid()
click to toggle source
# File lib/postmortem/identity.rb, line 12 def uuid @uuid ||= SecureRandom.uuid end