Class: AFCSalesforce::AdditionalIncome

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

#amountObject

Returns the value of attribute amount.



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

def amount
  @amount
end

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#is_owner_self_employedObject

Returns the value of attribute is_owner_self_employed.



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

def is_owner_self_employed
  @is_owner_self_employed
end

#ownerObject

Returns the value of attribute owner.



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

def owner
  @owner
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end

Instance Method Details

#to_hObject



5
6
7
8
9
10
# File 'lib/afc_salesforce/additional_income.rb', line 5

def to_h
  AFCSalesforce::Models::Income.new(
    amount__c: @amount,
    type__c: @type
  ).to_h
end