Class: Dropbox::Sign::FaxLineAreaCodeGetProvinceEnum
- Inherits:
-
Object
- Object
- Dropbox::Sign::FaxLineAreaCodeGetProvinceEnum
- Defined in:
- lib/dropbox-sign/models/fax_line_area_code_get_province_enum.rb
Constant Summary collapse
- AB =
"AB".freeze
- BC =
"BC".freeze
- MB =
"MB".freeze
- NB =
"NB".freeze
- NL =
"NL".freeze
- NT =
"NT".freeze
- NS =
"NS".freeze
- NU =
"NU".freeze
- ON =
"ON".freeze
- PE =
"PE".freeze
- QC =
"QC".freeze
- SK =
"SK".freeze
- YT =
"YT".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/dropbox-sign/models/fax_line_area_code_get_province_enum.rb', line 35 def self.all_vars @all_vars ||= [AB, BC, MB, NB, NL, NT, NS, NU, ON, PE, QC, SK, YT].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
42 43 44 |
# File 'lib/dropbox-sign/models/fax_line_area_code_get_province_enum.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/dropbox-sign/models/fax_line_area_code_get_province_enum.rb', line 49 def build_from_hash(value) return value if FaxLineAreaCodeGetProvinceEnum.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #FaxLineAreaCodeGetProvinceEnum" end |