Class: Achoo::System::PMSuspend::LogEntry
- Inherits:
-
Object
- Object
- Achoo::System::PMSuspend::LogEntry
- Defined in:
- lib/achoo/system/pm_suspend.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(time_str, action) ⇒ LogEntry
constructor
A new instance of LogEntry.
Constructor Details
#initialize(time_str, action) ⇒ LogEntry
Returns a new instance of LogEntry.
10 11 12 13 |
# File 'lib/achoo/system/pm_suspend.rb', line 10 def initialize(time_str, action) @action = action @time = Time.parse(time_str) end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
8 9 10 |
# File 'lib/achoo/system/pm_suspend.rb', line 8 def action @action end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
7 8 9 |
# File 'lib/achoo/system/pm_suspend.rb', line 7 def time @time end |