class Chef::Audit::ControlData
Attributes
context[R]
details[RW]
line_number[R]
name[R]
resource_name[R]
resource_type[R]
status[RW]
Public Class Methods
new(control_data = {})
click to toggle source
# File lib/chef/audit/control_group_data.rb, line 119 def initialize(control_data = {}) control_data.each do |k, v| instance_variable_set("@#{k}", v) end end
Public Instance Methods
to_hash()
click to toggle source
# File lib/chef/audit/control_group_data.rb, line 125 def to_hash h = { :name => name, :status => status, :details => details, :resource_type => resource_type, :resource_name => resource_name, } h[:context] = context || [] h end