Class: PostRunner::DailySleepAnalyzer::SleepInterval

Inherits:
Struct
  • Object
show all
Defined in:
lib/postrunner/DailySleepAnalyzer.rb

Overview

Utility class to store the interval of a sleep/wake phase.

Instance Attribute Summary collapse

Instance Attribute Details

#from_timeObject

Returns the value of attribute from_time

Returns:

  • (Object)

    the current value of from_time



23
24
25
# File 'lib/postrunner/DailySleepAnalyzer.rb', line 23

def from_time
  @from_time
end

#phaseObject

Returns the value of attribute phase

Returns:

  • (Object)

    the current value of phase



23
24
25
# File 'lib/postrunner/DailySleepAnalyzer.rb', line 23

def phase
  @phase
end

#to_timeObject

Returns the value of attribute to_time

Returns:

  • (Object)

    the current value of to_time



23
24
25
# File 'lib/postrunner/DailySleepAnalyzer.rb', line 23

def to_time
  @to_time
end