Class: Crusoe::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/crusoe/entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(date = Date.today) ⇒ Entry

Returns a new instance of Entry.



9
10
11
# File 'lib/crusoe/entry.rb', line 9

def initialize(date = Date.today)
  @date = date
end

Instance Attribute Details

#dateObject (readonly)

Returns the value of attribute date.



5
6
7
# File 'lib/crusoe/entry.rb', line 5

def date
  @date
end