Class: Tcelfer::Models::Day

Inherits:
Object
  • Object
show all
Defined in:
lib/tcelfer/models/day.rb

Overview

Day model

Instance Method Summary collapse

Instance Method Details

#to_sString

Pretty format for a Day model 2019-01-17: Normal, Average Day

Returns:

  • (String)


28
29
30
31
32
# File 'lib/tcelfer/models/day.rb', line 28

def to_s
  str = "#{date}: #{rating}"
  str += " || Notes: #{notes}" unless notes.nil?
  str
end