Class: FdxV660Api::AccountCategory11

Inherits:
Object
  • Object
show all
Defined in:
lib/fdx_v660_api/models/account_category11.rb

Overview

The entity type of the account of this transaction, in this case INVESTMENT_ACCOUNT

Constant Summary collapse

ACCOUNT_CATEGORY11 =
[
  # TODO: Write general description for INVESTMENT_ACCOUNT
  INVESTMENT_ACCOUNT = 'INVESTMENT_ACCOUNT'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.from_value(value, default_value = INVESTMENT_ACCOUNT) ⇒ Object



21
22
23
24
25
# File 'lib/fdx_v660_api/models/account_category11.rb', line 21

def self.from_value(value, default_value = INVESTMENT_ACCOUNT)
  return default_value if value.nil?

  default_value
end

.validate(value) ⇒ Object



15
16
17
18
19
# File 'lib/fdx_v660_api/models/account_category11.rb', line 15

def self.validate(value)
  return false if value.nil?

  true
end