Class: PolishInvoicer::Presenter
- Inherits:
-
Object
- Object
- PolishInvoicer::Presenter
- Defined in:
- lib/polish_invoicer/presenter.rb
Instance Attribute Summary collapse
-
#invoice ⇒ Object
Returns the value of attribute invoice.
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(invoice) ⇒ Presenter
constructor
A new instance of Presenter.
Constructor Details
#initialize(invoice) ⇒ Presenter
7 8 9 10 |
# File 'lib/polish_invoicer/presenter.rb', line 7 def initialize(invoice) @invoice = invoice @out = {} end |
Instance Attribute Details
#invoice ⇒ Object
Returns the value of attribute invoice.
5 6 7 |
# File 'lib/polish_invoicer/presenter.rb', line 5 def invoice @invoice end |
Instance Method Details
#data ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/polish_invoicer/presenter.rb', line 12 def data copy_available_params remove_redundand_params copy_additional_params format_dates format_prices format_comments format_vat @out end |