Class: Invoicing::MoveInvoice::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#invoiceObject (readonly)

Returns the value of attribute invoice

Returns:

  • (Object)

    the current value of invoice



4
5
6
# File 'app/services/invoicing/move_invoice.rb', line 4

def invoice
  @invoice
end

#invoice_movedObject (readonly)

Returns the value of attribute invoice_moved

Returns:

  • (Object)

    the current value of invoice_moved



4
5
6
# File 'app/services/invoicing/move_invoice.rb', line 4

def invoice_moved
  @invoice_moved
end

#messagesObject (readonly)

Returns the value of attribute messages

Returns:

  • (Object)

    the current value of messages



4
5
6
# File 'app/services/invoicing/move_invoice.rb', line 4

def messages
  @messages
end

Instance Method Details

#invoice_moved?Boolean

Returns:

  • (Boolean)


6
# File 'app/services/invoicing/move_invoice.rb', line 6

def invoice_moved? = invoice_moved