Class: RockBooks::JournalEntryContext
- Inherits:
-
Struct
- Object
- Struct
- RockBooks::JournalEntryContext
- Defined in:
- lib/rock_books/types/journal_entry_context.rb
Instance Attribute Summary collapse
-
#journal ⇒ Object
Returns the value of attribute journal.
-
#line ⇒ Object
Returns the value of attribute line.
-
#linenum ⇒ Object
Returns the value of attribute linenum.
Instance Method Summary collapse
Instance Attribute Details
#journal ⇒ Object
Returns the value of attribute journal
3 4 5 |
# File 'lib/rock_books/types/journal_entry_context.rb', line 3 def journal @journal end |
#line ⇒ Object
Returns the value of attribute line
3 4 5 |
# File 'lib/rock_books/types/journal_entry_context.rb', line 3 def line @line end |
#linenum ⇒ Object
Returns the value of attribute linenum
3 4 5 |
# File 'lib/rock_books/types/journal_entry_context.rb', line 3 def linenum @linenum end |
Instance Method Details
#chart_of_accounts ⇒ Object
5 6 7 |
# File 'lib/rock_books/types/journal_entry_context.rb', line 5 def chart_of_accounts journal.chart_of_accounts end |
#to_s ⇒ Object
9 10 11 |
# File 'lib/rock_books/types/journal_entry_context.rb', line 9 def to_s "Journal '#{journal.short_name}', line ##{linenum}, text: #{line}" end |