class Economic::CurrentInvoiceLineProxy

Public Instance Methods

find(handle) click to toggle source

Gets data for CurrentInvoiceLine from the API

Calls superclass method
# File lib/economic/proxies/current_invoice_line_proxy.rb, line 8
def find(handle)
  handle = Entity::Handle.build(:number => handle) unless handle.is_a?(Entity::Handle)
  super(handle)
end

Private Instance Methods

initialize_properties_with_values_from_owner(invoice_line) click to toggle source

Initialize properties in invoice_line with values from owner

# File lib/economic/proxies/current_invoice_line_proxy.rb, line 16
def initialize_properties_with_values_from_owner(invoice_line)
  if owner.is_a?(CurrentInvoice)
    invoice_line.invoice = owner
  end
  invoice_line
end