Class: Dropbox::Sign::FaxLineAreaCodeGetStateEnum

Inherits:
Object
  • Object
show all
Defined in:
lib/dropbox-sign/models/fax_line_area_code_get_state_enum.rb

Constant Summary collapse

AK =
"AK".freeze
AL =
"AL".freeze
AR =
"AR".freeze
AZ =
"AZ".freeze
CA =
"CA".freeze
CO =
"CO".freeze
CT =
"CT".freeze
DC =
"DC".freeze
DE =
"DE".freeze
FL =
"FL".freeze
GA =
"GA".freeze
HI =
"HI".freeze
IA =
"IA".freeze
ID =
"ID".freeze
IL =
"IL".freeze
IN =
"IN".freeze
KS =
"KS".freeze
KY =
"KY".freeze
LA =
"LA".freeze
MA =
"MA".freeze
MD =
"MD".freeze
ME =
"ME".freeze
MI =
"MI".freeze
MN =
"MN".freeze
MO =
"MO".freeze
MS =
"MS".freeze
MT =
"MT".freeze
NC =
"NC".freeze
ND =
"ND".freeze
NE =
"NE".freeze
NH =
"NH".freeze
NJ =
"NJ".freeze
NM =
"NM".freeze
NV =
"NV".freeze
NY =
"NY".freeze
OH =
"OH".freeze
OK =
"OK".freeze
OR =
"OR".freeze
PA =
"PA".freeze
RI =
"RI".freeze
SC =
"SC".freeze
SD =
"SD".freeze
TN =
"TN".freeze
TX =
"TX".freeze
UT =
"UT".freeze
VA =
"VA".freeze
VT =
"VT".freeze
WA =
"WA".freeze
WI =
"WI".freeze
WV =
"WV".freeze
WY =
"WY".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all_varsObject



73
74
75
# File 'lib/dropbox-sign/models/fax_line_area_code_get_state_enum.rb', line 73

def self.all_vars
  @all_vars ||= [AK, AL, AR, AZ, CA, CO, CT, DC, DE, FL, GA, HI, IA, ID, IL, IN, KS, KY, LA, MA, MD, ME, MI, MN, MO, MS, MT, NC, ND, NE, NH, NJ, NM, NV, NY, OH, OK, OR, PA, RI, SC, SD, TN, TX, UT, VA, VT, WA, WI, WV, WY].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



80
81
82
# File 'lib/dropbox-sign/models/fax_line_area_code_get_state_enum.rb', line 80

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



87
88
89
90
# File 'lib/dropbox-sign/models/fax_line_area_code_get_state_enum.rb', line 87

def build_from_hash(value)
  return value if FaxLineAreaCodeGetStateEnum.all_vars.include?(value)
  raise "Invalid ENUM value #{value} for class #FaxLineAreaCodeGetStateEnum"
end