Class: Economic::CurrentInvoiceLineProxy

Inherits:
EntityProxy show all
Defined in:
lib/economic/proxies/current_invoice_line_proxy.rb

Instance Attribute Summary

Attributes inherited from EntityProxy

#items, #owner

Instance Method Summary collapse

Methods inherited from EntityProxy

#<<, #each, #empty?, #entity_class, entity_class, #find, #get_data, #initialize, #session

Constructor Details

This class inherits a constructor from Economic::EntityProxy

Instance Method Details

#build(properties = {}) ⇒ Object

Returns a new, unpersisted Economic::CurrentInvoiceLine



6
7
8
9
10
# File 'lib/economic/proxies/current_invoice_line_proxy.rb', line 6

def build(properties = {})
  invoice_line = super
  initialize_properties_with_values_from_owner(invoice_line) if owner.is_a?(CurrentInvoice)
  invoice_line
end