Class: AFCSalesforce::Borrower

Inherits:
Base
  • Object
show all
Defined in:
lib/afc_salesforce/borrower.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Models::Concerns::TypeSetter

extended

Constructor Details

This class inherits a constructor from AFCSalesforce::Base

Instance Attribute Details

#cityObject

Returns the value of attribute city.



3
4
5
# File 'lib/afc_salesforce/borrower.rb', line 3

def city
  @city
end

#company_nameObject

Returns the value of attribute company_name.



3
4
5
# File 'lib/afc_salesforce/borrower.rb', line 3

def company_name
  @company_name
end

#emailObject

Returns the value of attribute email.



3
4
5
# File 'lib/afc_salesforce/borrower.rb', line 3

def email
  @email
end

#first_nameObject

Returns the value of attribute first_name.



3
4
5
# File 'lib/afc_salesforce/borrower.rb', line 3

def first_name
  @first_name
end

#income_typeObject

Returns the value of attribute income_type.



3
4
5
# File 'lib/afc_salesforce/borrower.rb', line 3

def income_type
  @income_type
end

#last_nameObject

Returns the value of attribute last_name.



3
4
5
# File 'lib/afc_salesforce/borrower.rb', line 3

def last_name
  @last_name
end

#marital_statusObject

Returns the value of attribute marital_status.



3
4
5
# File 'lib/afc_salesforce/borrower.rb', line 3

def marital_status
  @marital_status
end

#middle_nameObject

Returns the value of attribute middle_name.



3
4
5
# File 'lib/afc_salesforce/borrower.rb', line 3

def middle_name
  @middle_name
end

#phoneObject

Returns the value of attribute phone.



3
4
5
# File 'lib/afc_salesforce/borrower.rb', line 3

def phone
  @phone
end

#ssnObject

Returns the value of attribute ssn.



3
4
5
# File 'lib/afc_salesforce/borrower.rb', line 3

def ssn
  @ssn
end

#stateObject

Returns the value of attribute state.



3
4
5
# File 'lib/afc_salesforce/borrower.rb', line 3

def state
  @state
end

#streetObject

Returns the value of attribute street.



3
4
5
# File 'lib/afc_salesforce/borrower.rb', line 3

def street
  @street
end

#suffixObject

Returns the value of attribute suffix.



3
4
5
# File 'lib/afc_salesforce/borrower.rb', line 3

def suffix
  @suffix
end

#zipObject

Returns the value of attribute zip.



3
4
5
# File 'lib/afc_salesforce/borrower.rb', line 3

def zip
  @zip
end

Instance Method Details

#to_hObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/afc_salesforce/borrower.rb', line 11

def to_h
  AFCSalesforce::Models::Contact.new(
    additional_income_type__c: @income_type,
    firstname: @first_name,
    middle_name__c: @middle_name,
    lastname: @last_name,
    suffix__c: @suffix,
    phone: @phone,
    ssn__c: @ssn,
    email: @email,
    marital_status__c: @marital_status,
    mailingstreet: @street,
    mailingcity: @city,
    mailingstate: @state,
    mailingpostalcode: @zip,
    bor_company_name__c: @company_name,
    monthly_income__c: @monthly_income,
    yearly_income__c: @yearly_income,
    years_on_the_job__c: @years_on_job,
    is_self_employed__c: @is_self_employed,
    primary_borrower__c: @is_primary,
    birthdate: @birthdate
  ).to_h
end