Class: FdxV660Api::InvestmentAssetType3
- Inherits:
-
Object
- Object
- FdxV660Api::InvestmentAssetType3
- Defined in:
- lib/fdx_v660_api/models/investment_asset_type3.rb
Overview
The type of investment account asset in this holding. ANNUITY, BOND, CD, DEBT, DIGITALASSET, MUTUALFUND, OPTION, OTHER, STOCK, SWEEP
Constant Summary collapse
- INVESTMENT_ASSET_TYPE3 =
[ # TODO: Write general description for ANNUITY ANNUITY = 'ANNUITY'.freeze, # TODO: Write general description for BOND BOND = 'BOND'.freeze, # TODO: Write general description for CD CD = 'CD'.freeze, # TODO: Write general description for DEBT DEBT = 'DEBT'.freeze, # TODO: Write general description for DIGITALASSET DIGITALASSET = 'DIGITALASSET'.freeze, # TODO: Write general description for MUTUALFUND MUTUALFUND = 'MUTUALFUND'.freeze, # TODO: Write general description for OPTION OPTION = 'OPTION'.freeze, # TODO: Write general description for OTHER OTHER = 'OTHER'.freeze, # TODO: Write general description for STOCK STOCK = 'STOCK'.freeze, # TODO: Write general description for SWEEP SWEEP = 'SWEEP'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = ANNUITY) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/fdx_v660_api/models/investment_asset_type3.rb', line 48 def self.from_value(value, default_value = ANNUITY) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'annuity' then ANNUITY when 'bond' then BOND when 'cd' then CD when 'debt' then DEBT when 'digitalasset' then DIGITALASSET when 'mutualfund' then MUTUALFUND when 'option' then OPTION when 'other' then OTHER when 'stock' then STOCK when 'sweep' then SWEEP else default_value end end |
.validate(value) ⇒ Object
42 43 44 45 46 |
# File 'lib/fdx_v660_api/models/investment_asset_type3.rb', line 42 def self.validate(value) return false if value.nil? true end |