Class: MergeAccountingClient::StateEnum

Inherits:
Object
  • Object
show all
Defined in:
lib/merge_accounting_client/models/state_enum.rb

Constant Summary collapse

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#raw_valueObject

Returns the value of attribute raw_value.



81
82
83
# File 'lib/merge_accounting_client/models/state_enum.rb', line 81

def raw_value
  @raw_value
end

#valueObject

Returns the value of attribute value.



80
81
82
# File 'lib/merge_accounting_client/models/state_enum.rb', line 80

def value
  @value
end

Class Method Details

.build_from_hash(value) ⇒ Object



97
98
99
# File 'lib/merge_accounting_client/models/state_enum.rb', line 97

def self.build_from_hash(value)
  StateEnum.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



86
87
88
89
90
91
92
93
94
95
# File 'lib/merge_accounting_client/models/state_enum.rb', line 86

def build_from_hash(value)
  @raw_value = value
  if ["AL", "AK", "AS", "AZ", "AR", "AA", "AE", "AP", "CA", "CO", "CT", "DE", "DC", "FL", "GA", "GU", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "MP", "OH", "OK", "OR", "PA", "PR", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VI", "VA", "WA", "WV", "WI", "WY", ].include? value
    @value = value
  else
    @value = MERGE_NONSTANDARD_VALUE
  end

  self
end