Class: AFCSalesforce::Models::Income

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Concerns::TypeSetter

extended

Constructor Details

This class inherits a constructor from AFCSalesforce::Models::Base

Instance Attribute Details

#amount__cObject

Returns the value of attribute amount__c.



4
5
6
# File 'lib/afc_salesforce/models/income.rb', line 4

def amount__c
  @amount__c
end

#borrower__cObject

Returns the value of attribute borrower__c.



4
5
6
# File 'lib/afc_salesforce/models/income.rb', line 4

def borrower__c
  @borrower__c
end

#createdbyObject

Returns the value of attribute createdby.



4
5
6
# File 'lib/afc_salesforce/models/income.rb', line 4

def createdby
  @createdby
end

#description__cObject

Returns the value of attribute description__c.



4
5
6
# File 'lib/afc_salesforce/models/income.rb', line 4

def description__c
  @description__c
end

#is_self_employed__cObject

Returns the value of attribute is_self_employed__c.



4
5
6
# File 'lib/afc_salesforce/models/income.rb', line 4

def is_self_employed__c
  @is_self_employed__c
end

#lastmodifiedbyObject

Returns the value of attribute lastmodifiedby.



4
5
6
# File 'lib/afc_salesforce/models/income.rb', line 4

def lastmodifiedby
  @lastmodifiedby
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/afc_salesforce/models/income.rb', line 4

def name
  @name
end

#otherincomeid__cObject

Returns the value of attribute otherincomeid__c.



4
5
6
# File 'lib/afc_salesforce/models/income.rb', line 4

def otherincomeid__c
  @otherincomeid__c
end

#ownerObject

Returns the value of attribute owner.



4
5
6
# File 'lib/afc_salesforce/models/income.rb', line 4

def owner
  @owner
end

#type__cObject

Returns the value of attribute type__c.



4
5
6
# File 'lib/afc_salesforce/models/income.rb', line 4

def type__c
  @type__c
end

Instance Method Details

#to_hObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/afc_salesforce/models/income.rb', line 9

def to_h
  {
    :"CreatedBy"           => @createdby,
    :"LastModifiedBy"      => @lastmodifiedby,
    :"Name"                => @name,
    :"Owner"               => @owner,
    :"Amount__c"           => @amount__c,
    :"Borrower__c"         => @borrower__c,
    :"Description__c"      => @description__c,
    :"Is_Self_Employed__c" => @is_self_employed__c,
    :"OtherIncomeID__c"    => @otherincomeid__c,
    :"Type__c"             => @type__c
  }.select{ |k,v| !v.nil? }
end