Class: Lob::DpvFootnote
- Inherits:
-
Object
- Object
- Lob::DpvFootnote
- Defined in:
- lib/lob/models/dpv_footnote.rb
Constant Summary collapse
- AA =
"AA".freeze
- A1 =
"A1".freeze
- BB =
"BB".freeze
- CC =
"CC".freeze
- C1 =
"C1".freeze
- F1 =
"F1".freeze
- G1 =
"G1".freeze
- IA =
"IA".freeze
- M1 =
"M1".freeze
- M3 =
"M3".freeze
- N1 =
"N1".freeze
- PB =
"PB".freeze
- P1 =
"P1".freeze
- P3 =
"P3".freeze
- R1 =
"R1".freeze
- R7 =
"R7".freeze
- RR =
"RR".freeze
- TA =
"TA".freeze
- U1 =
"U1".freeze
Class Method Summary collapse
-
.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
.build_from_hash(value) ⇒ String
Builds the enum from string
41 42 43 |
# File 'lib/lob/models/dpv_footnote.rb', line 41 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
48 49 50 51 52 |
# File 'lib/lob/models/dpv_footnote.rb', line 48 def build_from_hash(value) constantValues = DpvFootnote.constants.select { |c| DpvFootnote::const_get(c) == value } raise "Invalid ENUM value #{value} for class #DpvFootnote" if constantValues.empty? value end |