Class: AdvancedBilling::ItemCategory

Inherits:
Object
  • Object
show all
Defined in:
lib/advanced_billing/models/item_category.rb

Overview

One of the following: Business Software, Consumer Software, Digital Services, Physical Goods, Other

Constant Summary collapse

ITEM_CATEGORY =
[
  # TODO: Write general description for ENUM_BUSINESS_SOFTWARE
  ENUM_BUSINESS_SOFTWARE = 'Business Software'.freeze,

  # TODO: Write general description for ENUM_CONSUMER_SOFTWARE
  ENUM_CONSUMER_SOFTWARE = 'Consumer Software'.freeze,

  # TODO: Write general description for ENUM_DIGITAL_SERVICES
  ENUM_DIGITAL_SERVICES = 'Digital Services'.freeze,

  # TODO: Write general description for ENUM_PHYSICAL_GOODS
  ENUM_PHYSICAL_GOODS = 'Physical Goods'.freeze,

  # TODO: Write general description for OTHER
  OTHER = 'Other'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



27
28
29
30
31
# File 'lib/advanced_billing/models/item_category.rb', line 27

def self.validate(value)
  return false if value.nil?

  ITEM_CATEGORY.include?(value)
end