Class: Rdayone::Journal
- Inherits:
-
Object
- Object
- Rdayone::Journal
- Defined in:
- lib/rdayone/journal.rb
Instance Attribute Summary collapse
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
-
#file_path ⇒ Object
readonly
Returns the value of attribute file_path.
-
#finder ⇒ Object
readonly
Returns the value of attribute finder.
Instance Method Summary collapse
-
#initialize(file_path, finder = Rdayone::Finder.new(file_path)) ⇒ Journal
constructor
A new instance of Journal.
Constructor Details
#initialize(file_path, finder = Rdayone::Finder.new(file_path)) ⇒ Journal
Returns a new instance of Journal.
5 6 7 8 9 |
# File 'lib/rdayone/journal.rb', line 5 def initialize(file_path, finder = Rdayone::Finder.new(file_path)) @file_path = file_path @finder = finder @entries = finder.find_entries end |
Instance Attribute Details
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
3 4 5 |
# File 'lib/rdayone/journal.rb', line 3 def entries @entries end |
#file_path ⇒ Object (readonly)
Returns the value of attribute file_path.
3 4 5 |
# File 'lib/rdayone/journal.rb', line 3 def file_path @file_path end |
#finder ⇒ Object (readonly)
Returns the value of attribute finder.
3 4 5 |
# File 'lib/rdayone/journal.rb', line 3 def finder @finder end |