Class: Achoo::System::PMSuspend::LogEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/achoo/system/pm_suspend.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actionObject (readonly)

Returns the value of attribute action.



8
9
10
# File 'lib/achoo/system/pm_suspend.rb', line 8

def action
  @action
end

#timeObject (readonly)

Returns the value of attribute time.



7
8
9
# File 'lib/achoo/system/pm_suspend.rb', line 7

def time
  @time
end