Move @data creation to initialize.

Signed-off-by: Miah Johnson <miah@chia-pet.org>
This commit is contained in:
Miah Johnson 2019-04-11 00:41:51 -07:00
parent ac78feb090
commit 61e639e2fe

View file

@ -8,14 +8,11 @@ module Inspec::Telemetry
def initialize(name)
@name = name
@enabled = true
end
attr_reader :name
def data
@data ||= []
end
attr_reader :data, :name
# This needs to also be set by configuration.
def enabled?
@enabled