Class: ForemanOpenscap::PolicyDashboard::Data
- Inherits:
-
Object
- Object
- ForemanOpenscap::PolicyDashboard::Data
- Defined in:
- app/services/foreman_openscap/policy_dashboard/data.rb
Instance Attribute Summary collapse
-
#report ⇒ Object
readonly
Returns the value of attribute report.
Instance Method Summary collapse
-
#initialize(policy, filter = "") ⇒ Data
constructor
A new instance of Data.
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
#report ⇒ Object
Returns the value of attribute report.
3 4 5 |
# File 'app/services/foreman_openscap/policy_dashboard/data.rb', line 3 def report @report end |