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

#session_uuidObject

Returns the value of attribute session_uuid.



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

def session_uuid
  @session_uuid
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

#va_dependent_agesObject

Returns the value of attribute va_dependent_ages.



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

def va_dependent_ages
  @va_dependent_ages
end

#va_dependent_countObject

Returns the value of attribute va_dependent_count.



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

def va_dependent_count
  @va_dependent_count
end

#velo__status__cObject

Returns the value of attribute velo__status__c.



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

def velo__status__c
  @velo__status__c
end

#x1_prev_emp_fromObject

Returns the value of attribute x1_prev_emp_from.



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

def x1_prev_emp_from
  @x1_prev_emp_from
end

#x1_prev_emp_monthly_incomeObject

Returns the value of attribute x1_prev_emp_monthly_income.



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

def x1_prev_emp_monthly_income
  @x1_prev_emp_monthly_income
end

#x1_prev_emp_nameObject

Returns the value of attribute x1_prev_emp_name.



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

def x1_prev_emp_name
  @x1_prev_emp_name
end

#x1_prev_emp_toObject

Returns the value of attribute x1_prev_emp_to.



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

def x1_prev_emp_to
  @x1_prev_emp_to
end

#x1_residence_cityObject

Returns the value of attribute x1_residence_city.



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

def x1_residence_city
  @x1_residence_city
end

#x1_residence_stateObject

Returns the value of attribute x1_residence_state.



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

def x1_residence_state
  @x1_residence_state
end

#x1_residence_streetObject

Returns the value of attribute x1_residence_street.



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

def x1_residence_street
  @x1_residence_street
end

#x1_residence_zipObject

Returns the value of attribute x1_residence_zip.



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

def x1_residence_zip
  @x1_residence_zip
end

#x2_prev_emp_fromObject

Returns the value of attribute x2_prev_emp_from.



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

def x2_prev_emp_from
  @x2_prev_emp_from
end

#x2_prev_emp_monthly_incomeObject

Returns the value of attribute x2_prev_emp_monthly_income.



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

def x2_prev_emp_monthly_income
  @x2_prev_emp_monthly_income
end

#x2_prev_emp_nameObject

Returns the value of attribute x2_prev_emp_name.



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

def x2_prev_emp_name
  @x2_prev_emp_name
end

#x2_prev_emp_toObject

Returns the value of attribute x2_prev_emp_to.



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

def x2_prev_emp_to
  @x2_prev_emp_to
end

#x2_residence_cityObject

Returns the value of attribute x2_residence_city.



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

def x2_residence_city
  @x2_residence_city
end

#x2_residence_stateObject

Returns the value of attribute x2_residence_state.



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

def x2_residence_state
  @x2_residence_state
end

#x2_residence_streetObject

Returns the value of attribute x2_residence_street.



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

def x2_residence_street
  @x2_residence_street
end

#x2_residence_zipObject

Returns the value of attribute x2_residence_zip.



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

def x2_residence_zip
  @x2_residence_zip
end

#x3_residence_cityObject

Returns the value of attribute x3_residence_city.



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

def x3_residence_city
  @x3_residence_city
end

#x3_residence_stateObject

Returns the value of attribute x3_residence_state.



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

def x3_residence_state
  @x3_residence_state
end

#x3_residence_streetObject

Returns the value of attribute x3_residence_street.



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

def x3_residence_street
  @x3_residence_street
end

#x3_residence_zipObject

Returns the value of attribute x3_residence_zip.



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

def x3_residence_zip
  @x3_residence_zip
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



51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# File 'lib/afc_salesforce/borrower.rb', line 51

def to_h
  AFCSalesforce::Models::Contact.new(
    additional_income_type__c: @income_type,
    birthdate: @birthdate,
    bor_company_name__c: @company_name,
    email: @email,
    firstname: @first_name,
    is_self_employed__c: @is_self_employed,
    lastname: @last_name,
    mailingcity: @city,
    mailingpostalcode: @zip,
    mailingstate: @state,
    mailingstreet: @street,
    marital_status__c: @marital_status,
    middle_name__c: @middle_name,
    monthly_income__c: @monthly_income,
    phone: @phone,
    primary_borrower__c: @is_primary,
    session_uuid__c: @session_uuid,
    ssn__c: @ssn,
    suffix__c: @suffix,
    va_dependent_ages__c: @va_dependent_ages,
    va_dependent_count__c: @va_dependent_count,
    velo__status__c: @velo__status__c,
    x1_prev_emp_from__c: @x1_prev_emp_from,
    x2_prev_emp_from__c: @x2_prev_emp_from,
    x1_prev_emp_monthly_income__c: @x1_prev_emp_monthly_income,
    x2_prev_emp_monthly_income__c: @x2_prev_emp_monthly_income,
    x1_prev_emp_name__c: @x1_prev_emp_name,
    x2_prev_emp_name__c: @x2_prev_emp_name,
    x1_prev_emp_to__c: @x1_prev_emp_to,
    x2_prev_emp_to__c: @x2_prev_emp_to,
    x1_residence_city__c: @x1_residence_city,
    x1_residence_state__c: @x1_residence_state,
    x1_residence_street__c: @x1_residence_street,
    x1_residence_zip__c: @x1_residence_zip,
    x2_residence_city__c: @x2_residence_city,
    x2_residence_state__c: @x2_residence_state,
    x2_residence_street__c: @x2_residence_street,
    x2_residence_zip__c: @x2_residence_zip,
    x3_residence_city__c: @x3_residence_city,
    x3_residence_state__c: @x3_residence_state,
    x3_residence_street__c: @x3_residence_street,
    x3_residence_zip__c: @x3_residence_zip,
    yearly_income__c: @yearly_income,
    years_on_the_job__c: @years_on_job
  ).to_h
end