Class: ForemanOpenscap::PolicyDashboard::Data

Inherits:
Object
  • Object
show all
Defined in:
app/services/foreman_openscap/policy_dashboard/data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(policy, filter = "") ⇒ Data

Returns a new instance of Data.



5
6
7
8
9
10
# File 'app/services/foreman_openscap/policy_dashboard/data.rb', line 5

def initialize(policy, filter = "")
  @policy = policy
  @filter = filter
  @report = {}
  fetch_data
end

Instance Attribute Details

#reportObject

Returns the value of attribute report.



3
4
5
# File 'app/services/foreman_openscap/policy_dashboard/data.rb', line 3

def report
  @report
end