Class: ModernTreasury::AccountsType1
- Inherits:
-
Object
- Object
- ModernTreasury::AccountsType1
- Defined in:
- lib/modern_treasury/models/accounts_type1.rb
Overview
accounts_type1.
Constant Summary collapse
- ACCOUNTS_TYPE1 =
[ # TODO: Write general description for EXTERNAL_ACCOUNTS EXTERNAL_ACCOUNTS = 'external_accounts'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = EXTERNAL_ACCOUNTS) ⇒ Object
20 21 22 23 24 |
# File 'lib/modern_treasury/models/accounts_type1.rb', line 20 def self.from_value(value, default_value = EXTERNAL_ACCOUNTS) return default_value if value.nil? default_value end |
.validate(value) ⇒ Object
14 15 16 17 18 |
# File 'lib/modern_treasury/models/accounts_type1.rb', line 14 def self.validate(value) return false if value.nil? ACCOUNTS_TYPE1.include?(value) end |