Class: Crusoe::Entry
- Inherits:
-
Object
- Object
- Crusoe::Entry
- Defined in:
- lib/crusoe/entry.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
readonly
Returns the value of attribute date.
Instance Method Summary collapse
-
#initialize(date = Date.today) ⇒ Entry
constructor
A new instance of Entry.
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
#date ⇒ Object (readonly)
Returns the value of attribute date.
5 6 7 |
# File 'lib/crusoe/entry.rb', line 5 def date @date end |