Class: FireflyIIIClient::AccountTypeProperty
- Inherits:
-
Object
- Object
- FireflyIIIClient::AccountTypeProperty
- Defined in:
- lib/firefly_iii_client/models/account_type_property.rb
Constant Summary collapse
- DEFAULT_ACCOUNT =
"Default account".freeze
- CASH_ACCOUNT =
"Cash account".freeze
- ASSET_ACCOUNT =
"Asset account".freeze
- EXPENSE_ACCOUNT =
"Expense account".freeze
- REVENUE_ACCOUNT =
"Revenue account".freeze
- INITIAL_BALANCE_ACCOUNT =
"Initial balance account".freeze
- BENEFICIARY_ACCOUNT =
"Beneficiary account".freeze
- IMPORT_ACCOUNT =
"Import account".freeze
- RECONCILIATION_ACCOUNT =
"Reconciliation account".freeze
- LOAN =
"Loan".freeze
- DEBT =
"Debt".freeze
- MORTGAGE =
"Mortgage".freeze
Class Method Summary collapse
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.build_from_hash(value) ⇒ String
Builds the enum from string
34 35 36 |
# File 'lib/firefly_iii_client/models/account_type_property.rb', line 34 def self.build_from_hash(value) new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
41 42 43 44 45 |
# 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 |