Class: FactPulse::TaxDueDateType
- Inherits:
-
Object
- Object
- FactPulse::TaxDueDateType
- Defined in:
- lib/factpulse/models/tax_due_date_type.rb
Constant Summary collapse
- N5 =
"5".freeze
- N29 =
"29".freeze
- N72 =
"72".freeze
- N3 =
"3".freeze
- N35 =
"35".freeze
- N432 =
"432".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
25 26 27 |
# File 'lib/factpulse/models/tax_due_date_type.rb', line 25 def self.all_vars @all_vars ||= [N5, N29, N72, N3, N35, N432].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
32 33 34 |
# File 'lib/factpulse/models/tax_due_date_type.rb', line 32 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
39 40 41 42 |
# File 'lib/factpulse/models/tax_due_date_type.rb', line 39 def build_from_hash(value) return value if TaxDueDateType.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #TaxDueDateType" end |