Class: YNAB::TransactionClearedStatus
- Inherits:
-
Object
- Object
- YNAB::TransactionClearedStatus
- Defined in:
- lib/ynab/models/transaction_cleared_status.rb
Constant Summary collapse
- CLEARED =
"cleared".freeze
- UNCLEARED =
"uncleared".freeze
- RECONCILED =
"reconciled".freeze
Class Method Summary collapse
- .all_vars ⇒ Object
-
.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
.all_vars ⇒ Object
19 20 21 |
# File 'lib/ynab/models/transaction_cleared_status.rb', line 19 def self.all_vars @all_vars ||= [CLEARED, UNCLEARED, RECONCILED].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
26 27 28 |
# File 'lib/ynab/models/transaction_cleared_status.rb', line 26 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
33 34 35 36 37 38 39 |
# File 'lib/ynab/models/transaction_cleared_status.rb', line 33 def build_from_hash(value) if TransactionClearedStatus.all_vars.include?(value) return value else return nil end end |