Class: Invoicing::PdfGenerator::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/invoicing/pdf_generator.rb

Overview

Service object: result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pdf: nil, invoice: nil) ⇒ Result

Returns a new instance of Result.



8
# File 'app/services/invoicing/pdf_generator.rb', line 8

def initialize(pdf: nil, invoice: nil) = super

Instance Attribute Details

#invoiceObject (readonly)

Returns the value of attribute invoice

Returns:

  • (Object)

    the current value of invoice



7
8
9
# File 'app/services/invoicing/pdf_generator.rb', line 7

def invoice
  @invoice
end

#pdfObject (readonly)

Returns the value of attribute pdf

Returns:

  • (Object)

    the current value of pdf



7
8
9
# File 'app/services/invoicing/pdf_generator.rb', line 7

def pdf
  @pdf
end