2019-10-16 06:52:30 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
class Reports::UpdateAgentIdentity < Reports::UpdateIdentity
|
|
|
|
attr_reader :agent
|
|
|
|
|
|
|
|
def initialize(account, agent, timestamp = Time.now)
|
|
|
|
super(account, timestamp)
|
|
|
|
@agent = agent
|
|
|
|
@identity = ::AgentIdentity.new(agent.id, tags: { account_id: account.id })
|
|
|
|
end
|
|
|
|
end
|