Class: FuseClient::TransactionCategoryPrimary

Inherits:
Object
  • Object
show all
Defined in:
lib/fuse_client/models/transaction_category_primary.rb

Constant Summary collapse

AUTO_AND_TRANSPORT =
"auto_and_transport".freeze
BILLS_AND_UTILITIES =
"bills_and_utilities".freeze
BUSINESS_SERVICES =
"business_services".freeze
EDUCATION =
"education".freeze
ENTERTAINMENT =
"entertainment".freeze
FEES_AND_CHARGES =
"fees_and_charges".freeze
FINANCIAL =
"financial".freeze
FOOD_AND_DINING =
"food_and_dining".freeze
GIFTS_AND_DONATIONS =
"gifts_and_donations".freeze
HEALTH_AND_FITNESS =
"health_and_fitness".freeze
HOME =
"home".freeze
INCOME =
"income".freeze
INVESTMENTS =
"investments".freeze
KIDS =
"kids".freeze
PERSONAL_CARE =
"personal_care".freeze
PETS =
"pets".freeze
SHOPPING =
"shopping".freeze
TAXES =
"taxes".freeze
TRANSFER =
"transfer".freeze
TRAVEL =
"travel".freeze
UNCATEGORIZED =
"uncategorized".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all_varsObject



40
41
42
# File 'lib/fuse_client/models/transaction_category_primary.rb', line 40

def self.all_vars
  @all_vars ||= [AUTO_AND_TRANSPORT, BILLS_AND_UTILITIES, BUSINESS_SERVICES, EDUCATION, ENTERTAINMENT, FEES_AND_CHARGES, FINANCIAL, FOOD_AND_DINING, GIFTS_AND_DONATIONS, HEALTH_AND_FITNESS, HOME, INCOME, INVESTMENTS, KIDS, PERSONAL_CARE, PETS, SHOPPING, TAXES, TRANSFER, TRAVEL, UNCATEGORIZED].freeze
end

.build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



47
48
49
# File 'lib/fuse_client/models/transaction_category_primary.rb', line 47

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

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



54
55
56
57
# File 'lib/fuse_client/models/transaction_category_primary.rb', line 54

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