Class: AFCSalesforce::Account

Inherits:
Base
  • Object
show all
Defined in:
lib/afc_salesforce/account.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

#appraised_valueObject

Returns the value of attribute appraised_value.



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

def appraised_value
  @appraised_value
end

#approximate_valueObject

Returns the value of attribute approximate_value.



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

def approximate_value
  @approximate_value
end

#condo_typeObject

Returns the value of attribute condo_type.



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

def condo_type
  @condo_type
end

#date_of_last_appraisalObject

Returns the value of attribute date_of_last_appraisal.



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

def date_of_last_appraisal
  @date_of_last_appraisal
end

#date_of_purchaseObject

Returns the value of attribute date_of_purchase.



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

def date_of_purchase
  @date_of_purchase
end

#emailObject

Returns the value of attribute email.



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

def email
  @email
end

#endorserObject

Returns the value of attribute endorser.



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

def endorser
  @endorser
end

#first_mortgage_balanceObject

Returns the value of attribute first_mortgage_balance.



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

def first_mortgage_balance
  @first_mortgage_balance
end

#first_mortgage_interest_rateObject

Returns the value of attribute first_mortgage_interest_rate.



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

def first_mortgage_interest_rate
  @first_mortgage_interest_rate
end

#first_mortgage_paymentObject

Returns the value of attribute first_mortgage_payment.



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

def first_mortgage_payment
  @first_mortgage_payment
end

#hoa_duesObject

Returns the value of attribute hoa_dues.



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

def hoa_dues
  @hoa_dues
end

#initial_purchase_priceObject

Returns the value of attribute initial_purchase_price.



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

def initial_purchase_price
  @initial_purchase_price
end

#internet_sourceObject

Returns the value of attribute internet_source.



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

def internet_source
  @internet_source
end

#is_escrowedObject

Returns the value of attribute is_escrowed.



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

def is_escrowed
  @is_escrowed
end

#is_va_eligibleObject

Returns the value of attribute is_va_eligible.



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

def is_va_eligible
  @is_va_eligible
end

#last_appraisal__cObject

Returns the value of attribute last_appraisal__c.



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

def last_appraisal__c
  @last_appraisal__c
end

#loan_purposeObject

Returns the value of attribute loan_purpose.



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

def loan_purpose
  @loan_purpose
end

#loan_typeObject

Returns the value of attribute loan_type.



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

def loan_type
  @loan_type
end

#monthly_insuranceObject

Returns the value of attribute monthly_insurance.



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

def monthly_insurance
  @monthly_insurance
end

#monthly_taxesObject

Returns the value of attribute monthly_taxes.



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

def monthly_taxes
  @monthly_taxes
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#number_of_unitsObject

Returns the value of attribute number_of_units.



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

def number_of_units
  @number_of_units
end

#phoneObject

Returns the value of attribute phone.



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

def phone
  @phone
end

#program_typeObject

Returns the value of attribute program_type.



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

def program_type
  @program_type
end

#property_acre_countObject

Returns the value of attribute property_acre_count.



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

def property_acre_count
  @property_acre_count
end

#property_bathroom_countObject

Returns the value of attribute property_bathroom_count.



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

def property_bathroom_count
  @property_bathroom_count
end

#property_bedroom_countObject

Returns the value of attribute property_bedroom_count.



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

def property_bedroom_count
  @property_bedroom_count
end

#property_cityObject

Returns the value of attribute property_city.



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

def property_city
  @property_city
end

#property_close_dateObject

Returns the value of attribute property_close_date.



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

def property_close_date
  @property_close_date
end

#property_down_paymentObject

Returns the value of attribute property_down_payment.



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

def property_down_payment
  @property_down_payment
end

#property_priceObject

Returns the value of attribute property_price.



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

def property_price
  @property_price
end

#property_stateObject

Returns the value of attribute property_state.



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

def property_state
  @property_state
end

#property_streetObject

Returns the value of attribute property_street.



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

def property_street
  @property_street
end

#property_typeObject

Returns the value of attribute property_type.



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

def property_type
  @property_type
end

#property_zipObject

Returns the value of attribute property_zip.



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

def property_zip
  @property_zip
end

#purchase_close_dateObject

Returns the value of attribute purchase_close_date.



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

def purchase_close_date
  @purchase_close_date
end

#purchase_dateObject

Returns the value of attribute purchase_date.



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

def purchase_date
  @purchase_date
end

#realtor_emailObject

Returns the value of attribute realtor_email.



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

def realtor_email
  @realtor_email
end

#realtor_nameObject

Returns the value of attribute realtor_name.



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

def realtor_name
  @realtor_name
end

#realtor_phoneObject

Returns the value of attribute realtor_phone.



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

def realtor_phone
  @realtor_phone
end

#realtor_sign_up_dateObject

Returns the value of attribute realtor_sign_up_date.



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

def 
  
end

#refinance_loan_typeObject

Returns the value of attribute refinance_loan_type.



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

def refinance_loan_type
  @refinance_loan_type
end

#refinance_reasonObject

Returns the value of attribute refinance_reason.



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

def refinance_reason
  @refinance_reason
end

#second_mortgageObject

Returns the value of attribute second_mortgage.



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

def second_mortgage
  @second_mortgage
end

#second_mortgage_balanceObject

Returns the value of attribute second_mortgage_balance.



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

def second_mortgage_balance
  @second_mortgage_balance
end

#second_mortgage_date_openedObject

Returns the value of attribute second_mortgage_date_opened.



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

def second_mortgage_date_opened
  @second_mortgage_date_opened
end

#second_mortgage_paymentObject

Returns the value of attribute second_mortgage_payment.



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

def second_mortgage_payment
  @second_mortgage_payment
end

#second_mortgage_rateObject

Returns the value of attribute second_mortgage_rate.



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

def second_mortgage_rate
  @second_mortgage_rate
end

#session_uuidObject

Returns the value of attribute session_uuid.



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

def session_uuid
  @session_uuid
end

#sourceObject

Returns the value of attribute source.



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

def source
  @source
end

#square_feetObject

Returns the value of attribute square_feet.



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

def square_feet
  @square_feet
end

#working_with_realtorObject

Returns the value of attribute working_with_realtor.



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

def working_with_realtor
  @working_with_realtor
end

#x2nd_mortgage_date_opened__cObject

Returns the value of attribute x2nd_mortgage_date_opened__c.



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

def x2nd_mortgage_date_opened__c
  @x2nd_mortgage_date_opened__c
end

Instance Method Details

#to_hObject



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/afc_salesforce/account.rb', line 13

def to_h
  AFCSalesforce::Models::.new(
    acres__c: @property_acre_count,
    appraised_value__c: @appraised_value,
    approximate_value__c: @approximate_value,
    bathrooms__c: @property_bathroom_count,
    bedrooms__c: @property_bedroom_count,
    billingpostalcode: @property_zip,
    billingstate: @property_state,
    billingstreet: @property_street,
    billingcity: @property_city,
    condo_type__c: @condo_type,
    down_payment__c: @property_down_payment,
    endorser__c: @endorser,
    escrowed__c: @is_escrowed,
    hoa_dues__c: @hoa_dues,
    internet_source__c: @internet_source,
    last_appraisal__c: @date_of_last_appraisal,
    loan_type__c: @refinance_loan_type,
    loan_purpose__c: @loan_purpose,
    monthly_insurance__c: @monthly_insurance,
    monthly_taxes__c: @monthly_taxes,
    name: @name,
    new_purchase_price__c: @property_price,
    number_of_units__c: @number_of_units,
    original_purchase_price__c: @initial_purchase_price,
    phone: @phone,
    program_type__c: @program_type,
    property_type__c: @property_type,
    purchase_date__c: @purchase_date,
    puchase_close_date__c: @purchase_close_date,
    realtor_email__c: @realtor_email,
    realtor_name__c: @realtor_name,
    realtor_phone_number__c: @realtor_phone,
    refinance_purpose__c: @refinance_reason,
    session_uuid__c: @session_uuid,
    source__c: @source,
    square_feet__c: @square_feet,
    type__c: @loan_type,
    va_eligible__c: @is_va_eligible,
    working_with_realtor__c: @working_with_realtor,
    x1st_mortgage_balance__c: @first_mortgage_balance,
    x1st_mortgage_payment__c: @first_mortgage_payment,
    x1st_mortgage_rate__c: @first_mortgage_interest_rate,
    x2nd_mortgage__c: @second_mortgage,
    x2nd_mortgage_balance__c: @second_mortgage_balance,
    x2nd_mortgage_date_opened__c: @second_mortgage_date_opened,
    x2nd_mortgage_payment__c: @second_mortgage_payment,
    x2nd_mortgage_rate__c: @second_mortgage_rate
  ).to_h
end