Class: Invoicing::MoveInvoice::Result
- Inherits:
-
Data
- Object
- Data
- Invoicing::MoveInvoice::Result
- Defined in:
- app/services/invoicing/move_invoice.rb
Instance Attribute Summary collapse
-
#invoice ⇒ Object
readonly
Returns the value of attribute invoice.
-
#invoice_moved ⇒ Object
readonly
Returns the value of attribute invoice_moved.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
Instance Method Summary collapse
-
#initialize(invoice_moved: nil, invoice: nil, messages: []) ⇒ Result
constructor
A new instance of Result.
- #invoice_moved? ⇒ Boolean
Constructor Details
#initialize(invoice_moved: nil, invoice: nil, messages: []) ⇒ Result
Returns a new instance of Result.
5 |
# File 'app/services/invoicing/move_invoice.rb', line 5 def initialize(invoice_moved: nil, invoice: nil, messages: []) = super |
Instance Attribute Details
#invoice ⇒ Object (readonly)
Returns the value of attribute invoice
4 5 6 |
# File 'app/services/invoicing/move_invoice.rb', line 4 def invoice @invoice end |
#invoice_moved ⇒ Object (readonly)
Returns the value of attribute invoice_moved
4 5 6 |
# File 'app/services/invoicing/move_invoice.rb', line 4 def invoice_moved @invoice_moved end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages
4 5 6 |
# File 'app/services/invoicing/move_invoice.rb', line 4 def @messages end |
Instance Method Details
#invoice_moved? ⇒ Boolean
6 |
# File 'app/services/invoicing/move_invoice.rb', line 6 def invoice_moved? = invoice_moved |