Class: AFCSalesforce::AdditionalIncome
- Defined in:
- lib/afc_salesforce/additional_income.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#description ⇒ Object
Returns the value of attribute description.
-
#is_owner_self_employed ⇒ Object
Returns the value of attribute is_owner_self_employed.
-
#owner ⇒ Object
Returns the value of attribute owner.
-
#type ⇒ Object
Returns the value of attribute type.
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
#amount ⇒ Object
Returns the value of attribute amount.
3 4 5 |
# File 'lib/afc_salesforce/additional_income.rb', line 3 def amount @amount end |
#description ⇒ Object
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_employed ⇒ Object
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 |
#owner ⇒ Object
Returns the value of attribute owner.
3 4 5 |
# File 'lib/afc_salesforce/additional_income.rb', line 3 def owner @owner end |
#type ⇒ Object
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_h ⇒ Object
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 |