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

#call_status__cObject

Returns the value of attribute call_status__c.



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

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

#dm_callObject

Returns the value of attribute dm_call.



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

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

#former_bankruptcyObject

Returns the value of attribute former_bankruptcy.



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

def former_bankruptcy
  @former_bankruptcy
end

#former_foreclosureObject

Returns the value of attribute former_foreclosure.



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

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

#occupancy_typeObject

Returns the value of attribute occupancy_type.



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

def occupancy_type
  @occupancy_type
end

#original_endorserObject

Returns the value of attribute original_endorser.



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

def original_endorser
  @original_endorser
end

#original_sourceObject

Returns the value of attribute original_source.



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

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

#residence_typeObject

Returns the value of attribute residence_type.



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

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

#subject_property_cityObject

Returns the value of attribute subject_property_city.



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

def subject_property_city
  @subject_property_city
end

#subject_property_stateObject

Returns the value of attribute subject_property_state.



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

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



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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# File 'lib/afc_salesforce/account.rb', line 67

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,
    billingcity: @property_city,
    billingpostalcode: @property_zip,
    billingstate: @property_state,
    billingstreet: @property_street,
    call_status__c: @call_status__c,
    condo_type__c: @condo_type,
    dm_call__c: @dm_call,
    down_payment__c: @property_down_payment,
    endorser__c: @endorser,
    escrowed__c: @is_escrowed,
    former_bankruptcy__c: @former_bankruptcy,
    former_foreclosure__c: @former_foreclosure,
    hoa_dues__c: @hoa_dues,
    internet_source__c: @internet_source,
    last_appraisal__c: @date_of_last_appraisal,
    loan_purpose__c: @loan_purpose,
    loan_type__c: @refinance_loan_type,
    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,
    occupancy_type__c: @occupancy_type,
    original_endorser__c: @original_endorser,
    original_purchase_price__c: @initial_purchase_price,
    original_source__c: @original_source,
    phone: @phone,
    program_type__c: @program_type,
    property_type__c: @property_type,
    puchase_close_date__c: @purchase_close_date,
    purchase_date__c: @purchase_date,
    realtor_email__c: @realtor_email,
    realtor_name__c: @realtor_name,
    realtor_phone_number__c: @realtor_phone,
    refinance_purpose__c: @refinance_reason,
    residence_type__c: @residence_type,
    session_uuid__c: @session_uuid,
    source__c: @source,
    square_feet__c: @square_feet,
    subject_property_city__c: @subject_property_city,
    subject_property_state__c: @subject_property_state,
    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