class FireflyIIIClient::AccountTypeProperty

Constants

ASSET_ACCOUNT
BENEFICIARY_ACCOUNT
CASH_ACCOUNT
DEBT
DEFAULT_ACCOUNT
EXPENSE_ACCOUNT
IMPORT_ACCOUNT
INITIAL_BALANCE_ACCOUNT
LOAN
MORTGAGE
RECONCILIATION_ACCOUNT
REVENUE_ACCOUNT

Public Class Methods

build_from_hash(value) click to toggle source

Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value

# File lib/firefly_iii_client/models/account_type_property.rb, line 34
def self.build_from_hash(value)
  new.build_from_hash(value)
end

Public Instance Methods

build_from_hash(value) click to toggle source

Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value

# File lib/firefly_iii_client/models/account_type_property.rb, line 41
def build_from_hash(value)
  constantValues = AccountTypeProperty.constants.select { |c| AccountTypeProperty::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #AccountTypeProperty" if constantValues.empty?
  value
end