mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
Move @data creation to initialize.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
This commit is contained in:
parent
ac78feb090
commit
61e639e2fe
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue