Class: SyncteraRubySdk::BalanceType

Inherits:
Object
  • Object
show all
Defined in:
lib/synctera_ruby_sdk/models/balance_type.rb

Constant Summary collapse

ACCOUNT_BALANCE =
"ACCOUNT_BALANCE".freeze
AVAILABLE_BALANCE =
"AVAILABLE_BALANCE".freeze
ACCRUED_INTEREST_MTD =
"ACCRUED_INTEREST_MTD".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all_varsObject



22
23
24
# File 'lib/synctera_ruby_sdk/models/balance_type.rb', line 22

def self.all_vars
  @all_vars ||= [, AVAILABLE_BALANCE, ACCRUED_INTEREST_MTD].freeze
end

.build_from_hash(value) ⇒ String

Builds the enum from string



29
30
31
# File 'lib/synctera_ruby_sdk/models/balance_type.rb', line 29

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



36
37
38
39
# File 'lib/synctera_ruby_sdk/models/balance_type.rb', line 36

def build_from_hash(value)
  return value if BalanceType.all_vars.include?(value)
  raise "Invalid ENUM value #{value} for class #BalanceType"
end