Class: Dropbox::Sign::FaxLineAreaCodeGetProvinceEnum

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Class Method Details

.all_varsObject



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

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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