Class: Kriterion::Event
Instance Attribute Summary collapse
-
#audited ⇒ Object
readonly
Returns the value of attribute audited.
-
#certname ⇒ Object
Returns the value of attribute certname.
-
#corrective_change ⇒ Object
readonly
Returns the value of attribute corrective_change.
-
#desired_value ⇒ Object
readonly
Returns the value of attribute desired_value.
-
#historical_value ⇒ Object
readonly
Returns the value of attribute historical_value.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#previous_value ⇒ Object
readonly
Returns the value of attribute previous_value.
-
#property ⇒ Object
readonly
Returns the value of attribute property.
-
#redacted ⇒ Object
readonly
Returns the value of attribute redacted.
-
#resource ⇒ Object
Returns the value of attribute resource.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(data) ⇒ Event
constructor
A new instance of Event.
Methods inherited from Object
#compliance, #find_section, #to_h
Constructor Details
#initialize(data) ⇒ Event
Returns a new instance of Event.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/kriterion/event.rb', line 20 def initialize(data) @audited = data['audited'] @property = data['property'] @previous_value = data['previous_value'] @desired_value = data['desired_value'] @historical_value = data['historical_value'] = data['message'] @name = data['name'] @status = data['status'] @time = data['time'] @redacted = data['redacted'] @corrective_change = data['corrective_change'] @certname = data['certname'] @resource = data['resource'] end |
Instance Attribute Details
#audited ⇒ Object (readonly)
Returns the value of attribute audited.
5 6 7 |
# File 'lib/kriterion/event.rb', line 5 def audited @audited end |
#certname ⇒ Object
Returns the value of attribute certname.
17 18 19 |
# File 'lib/kriterion/event.rb', line 17 def certname @certname end |
#corrective_change ⇒ Object (readonly)
Returns the value of attribute corrective_change.
15 16 17 |
# File 'lib/kriterion/event.rb', line 15 def corrective_change @corrective_change end |
#desired_value ⇒ Object (readonly)
Returns the value of attribute desired_value.
8 9 10 |
# File 'lib/kriterion/event.rb', line 8 def desired_value @desired_value end |
#historical_value ⇒ Object (readonly)
Returns the value of attribute historical_value.
9 10 11 |
# File 'lib/kriterion/event.rb', line 9 def historical_value @historical_value end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
10 11 12 |
# File 'lib/kriterion/event.rb', line 10 def end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/kriterion/event.rb', line 11 def name @name end |
#previous_value ⇒ Object (readonly)
Returns the value of attribute previous_value.
7 8 9 |
# File 'lib/kriterion/event.rb', line 7 def previous_value @previous_value end |
#property ⇒ Object (readonly)
Returns the value of attribute property.
6 7 8 |
# File 'lib/kriterion/event.rb', line 6 def property @property end |
#redacted ⇒ Object (readonly)
Returns the value of attribute redacted.
14 15 16 |
# File 'lib/kriterion/event.rb', line 14 def redacted @redacted end |
#resource ⇒ Object
Returns the value of attribute resource.
18 19 20 |
# File 'lib/kriterion/event.rb', line 18 def resource @resource end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
12 13 14 |
# File 'lib/kriterion/event.rb', line 12 def status @status end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
13 14 15 |
# File 'lib/kriterion/event.rb', line 13 def time @time end |