class Economic::DebtorContactProxy

Public Instance Methods

all() click to toggle source
# File lib/economic/proxies/debtor_contact_proxy.rb, line 13
def all
  Proxies::Actions::DebtorContact::All.new(self).call
end
find_by_name(name) click to toggle source

Returns DebtorContact that have the given name. The objects will only be partially loaded

# File lib/economic/proxies/debtor_contact_proxy.rb, line 9
def find_by_name(name)
  Proxies::Actions::FindByName.new(self, name).call
end

Private Instance Methods

initialize_properties_with_values_from_owner(contact) click to toggle source

Initialize properties in contact with values from owner. Returns contact.

# File lib/economic/proxies/debtor_contact_proxy.rb, line 20
def initialize_properties_with_values_from_owner(contact)
  if owner.is_a?(Debtor)
    contact.debtor = owner
  end
  contact
end