added security type models, improved cashflow, bug- and layout fixes along the way
[smr.git] / gui / lib / smr / cashflowitem.rb
blobf42fcb24b1e8206861313d9169e0e32e42f5e6d2
2 # This file is part of SMR.
4 # SMR is free software: you can redistribute it and/or modify it under the
5 # terms of the GNU General Public License as published by the Free Software
6 # Foundation, either version 3 of the License, or (at your option) any later
7 # version.
9 # SMR is distributed in the hope that it will be useful, but WITHOUT ANY
10 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License along with
14 # SMR.  If not, see <http://www.gnu.org/licenses/>.
17 module Smr  #:nodoc:
18   ##
19   # Represents a single item of cashflow. Useful for viewing.
20   class CashflowItem
22       ##
23       # Reader for given attribute, see #new
24       attr_reader :date
25       attr_reader :what
26       attr_reader :total
27       attr_reader :comment
29       def initialize(date, what, total, comment='')
30           @date=date; @what=what; @total=total; @comment = comment;
31       end
32   end
33 end # module