Class: Source::SetInvoiceSource::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/source/set_invoice_source.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(all_invoices_updated: nil, invoices_updated: [], invoices_failed: [], messages: []) ⇒ Result

Returns a new instance of Result.



5
# File 'app/services/source/set_invoice_source.rb', line 5

def initialize(all_invoices_updated: nil, invoices_updated: [], invoices_failed: [], messages: []) = super

Instance Attribute Details

#all_invoices_updatedObject (readonly)

Returns the value of attribute all_invoices_updated

Returns:

  • (Object)

    the current value of all_invoices_updated



4
5
6
# File 'app/services/source/set_invoice_source.rb', line 4

def all_invoices_updated
  @all_invoices_updated
end

#invoices_failedObject (readonly)

Returns the value of attribute invoices_failed

Returns:

  • (Object)

    the current value of invoices_failed



4
5
6
# File 'app/services/source/set_invoice_source.rb', line 4

def invoices_failed
  @invoices_failed
end

#invoices_updatedObject (readonly)

Returns the value of attribute invoices_updated

Returns:

  • (Object)

    the current value of invoices_updated



4
5
6
# File 'app/services/source/set_invoice_source.rb', line 4

def invoices_updated
  @invoices_updated
end

#messagesObject (readonly)

Returns the value of attribute messages

Returns:

  • (Object)

    the current value of messages



4
5
6
# File 'app/services/source/set_invoice_source.rb', line 4

def messages
  @messages
end

Instance Method Details

#all_invoices_updated?Boolean

Returns:

  • (Boolean)


6
# File 'app/services/source/set_invoice_source.rb', line 6

def all_invoices_updated? = all_invoices_updated