Class: ApiReference::Cadence34
- Inherits:
-
Object
- Object
- ApiReference::Cadence34
- Defined in:
- lib/api_reference/models/cadence34.rb
Overview
The cadence at which to allocate the amount to the customer.
Constant Summary collapse
- CADENCE34 =
[ # TODO: Write general description for ONE_TIME ONE_TIME = 'one_time'.freeze, # TODO: Write general description for MONTHLY MONTHLY = 'monthly'.freeze, # TODO: Write general description for QUARTERLY QUARTERLY = 'quarterly'.freeze, # TODO: Write general description for SEMI_ANNUAL SEMI_ANNUAL = 'semi_annual'.freeze, # TODO: Write general description for ANNUAL ANNUAL = 'annual'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = ONE_TIME) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/api_reference/models/cadence34.rb', line 32 def self.from_value(value, default_value = ONE_TIME) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'one_time' then ONE_TIME when 'monthly' then MONTHLY when 'quarterly' then QUARTERLY when 'semi_annual' then SEMI_ANNUAL when 'annual' then ANNUAL else default_value end end |
.validate(value) ⇒ Object
26 27 28 29 30 |
# File 'lib/api_reference/models/cadence34.rb', line 26 def self.validate(value) return false if value.nil? true end |