Class: FdxV660Api::AccountCategory5

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

Overview

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

Constant Summary collapse

ACCOUNT_CATEGORY5 =
[
  # TODO: Write general description for DEPOSIT_ACCOUNT
  DEPOSIT_ACCOUNT = 'DEPOSIT_ACCOUNT'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.from_value(value, default_value = DEPOSIT_ACCOUNT) ⇒ Object



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

def self.from_value(value, default_value = DEPOSIT_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_category5.rb', line 15

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

  true
end