Class: FdxV660Api::AssetClass2
- Inherits:
-
Object
- Object
- FdxV660Api::AssetClass2
- Defined in:
- lib/fdx_v660_api/models/asset_class2.rb
Overview
The asset class for this allocation
Constant Summary collapse
- ASSET_CLASS2 =
[ # TODO: Write general description for DOMESTICBOND DOMESTICBOND = 'DOMESTICBOND'.freeze, # TODO: Write general description for INTLBOND INTLBOND = 'INTLBOND'.freeze, # TODO: Write general description for INTLSTOCK INTLSTOCK = 'INTLSTOCK'.freeze, # TODO: Write general description for LARGESTOCK LARGESTOCK = 'LARGESTOCK'.freeze, # TODO: Write general description for MONEYMARKET MONEYMARKET = 'MONEYMARKET'.freeze, # TODO: Write general description for OTHER OTHER = 'OTHER'.freeze, # TODO: Write general description for SMALLSTOCK SMALLSTOCK = 'SMALLSTOCK'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = DOMESTICBOND) ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/fdx_v660_api/models/asset_class2.rb', line 38 def self.from_value(value, default_value = DOMESTICBOND) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'domesticbond' then DOMESTICBOND when 'intlbond' then INTLBOND when 'intlstock' then INTLSTOCK when 'largestock' then LARGESTOCK when 'moneymarket' then MONEYMARKET when 'other' then OTHER when 'smallstock' then SMALLSTOCK else default_value end end |
.validate(value) ⇒ Object
32 33 34 35 36 |
# File 'lib/fdx_v660_api/models/asset_class2.rb', line 32 def self.validate(value) return false if value.nil? true end |