Class: AFCSalesforce::Borrower
- Defined in:
- lib/afc_salesforce/borrower.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#company_name ⇒ Object
Returns the value of attribute company_name.
-
#email ⇒ Object
Returns the value of attribute email.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#income_type ⇒ Object
Returns the value of attribute income_type.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#marital_status ⇒ Object
Returns the value of attribute marital_status.
-
#middle_name ⇒ Object
Returns the value of attribute middle_name.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#ssn ⇒ Object
Returns the value of attribute ssn.
-
#state ⇒ Object
Returns the value of attribute state.
-
#street ⇒ Object
Returns the value of attribute street.
-
#suffix ⇒ Object
Returns the value of attribute suffix.
-
#zip ⇒ Object
Returns the value of attribute zip.
Instance Method Summary collapse
Methods inherited from Base
Methods included from Models::Concerns::TypeSetter
Constructor Details
This class inherits a constructor from AFCSalesforce::Base
Instance Attribute Details
#city ⇒ Object
Returns the value of attribute city.
3 4 5 |
# File 'lib/afc_salesforce/borrower.rb', line 3 def city @city end |
#company_name ⇒ Object
Returns the value of attribute company_name.
3 4 5 |
# File 'lib/afc_salesforce/borrower.rb', line 3 def company_name @company_name end |
#email ⇒ Object
Returns the value of attribute email.
3 4 5 |
# File 'lib/afc_salesforce/borrower.rb', line 3 def email @email end |
#first_name ⇒ Object
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_type ⇒ Object
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_name ⇒ Object
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_status ⇒ Object
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_name ⇒ Object
Returns the value of attribute middle_name.
3 4 5 |
# File 'lib/afc_salesforce/borrower.rb', line 3 def middle_name @middle_name end |
#phone ⇒ Object
Returns the value of attribute phone.
3 4 5 |
# File 'lib/afc_salesforce/borrower.rb', line 3 def phone @phone end |
#ssn ⇒ Object
Returns the value of attribute ssn.
3 4 5 |
# File 'lib/afc_salesforce/borrower.rb', line 3 def ssn @ssn end |
#state ⇒ Object
Returns the value of attribute state.
3 4 5 |
# File 'lib/afc_salesforce/borrower.rb', line 3 def state @state end |
#street ⇒ Object
Returns the value of attribute street.
3 4 5 |
# File 'lib/afc_salesforce/borrower.rb', line 3 def street @street end |
#suffix ⇒ Object
Returns the value of attribute suffix.
3 4 5 |
# File 'lib/afc_salesforce/borrower.rb', line 3 def suffix @suffix end |
#zip ⇒ Object
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_h ⇒ Object
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 |