Class: FactPulse::TypeFacture
- Inherits:
-
Object
- Object
- FactPulse::TypeFacture
- Defined in:
- lib/factpulse/models/type_facture.rb
Constant Summary collapse
- FACTURE =
"380".freeze
- FACTURE_AUTOFACTUREE =
"389".freeze
- FACTURE_AFFACTUREE =
"393".freeze
- FACTURE_AUTOFACTUREE_AFFACTUREE =
"501".freeze
- FACTURE_ACOMPTE =
"386".freeze
- FACTURE_ACOMPTE_AUTOFACTUREE =
"500".freeze
- FACTURE_RECTIFICATIVE =
"384".freeze
- FACTURE_RECTIFICATIVE_AUTOFACTUREE =
"471".freeze
- FACTURE_RECTIFICATIVE_AFFACTUREE =
"472".freeze
- FACTURE_RECTIFICATIVE_AUTOFACTUREE_AFFACTUREE =
"473".freeze
- AVOIR =
"381".freeze
- AVOIR_AUTOFACTURE =
"261".freeze
- AVOIR_REMISE_GLOBALE =
"262".freeze
- AVOIR_AFFACTURE =
"396".freeze
- AVOIR_AUTOFACTURE_AFFACTURE =
"502".freeze
- AVOIR_ACOMPTE =
"503".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
35 36 37 |
# File 'lib/factpulse/models/type_facture.rb', line 35 def self.all_vars @all_vars ||= [FACTURE, FACTURE_AUTOFACTUREE, FACTURE_AFFACTUREE, FACTURE_AUTOFACTUREE_AFFACTUREE, FACTURE_ACOMPTE, FACTURE_ACOMPTE_AUTOFACTUREE, FACTURE_RECTIFICATIVE, FACTURE_RECTIFICATIVE_AUTOFACTUREE, FACTURE_RECTIFICATIVE_AFFACTUREE, FACTURE_RECTIFICATIVE_AUTOFACTUREE_AFFACTUREE, AVOIR, AVOIR_AUTOFACTURE, AVOIR_REMISE_GLOBALE, AVOIR_AFFACTURE, AVOIR_AUTOFACTURE_AFFACTURE, AVOIR_ACOMPTE].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
42 43 44 |
# File 'lib/factpulse/models/type_facture.rb', line 42 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
49 50 51 52 |
# File 'lib/factpulse/models/type_facture.rb', line 49 def build_from_hash(value) return value if TypeFacture.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #TypeFacture" end |