Method: XeroRuby::PayrollAu::EmploymentTerminationPaymentType#build_from_hash
- Defined in:
- lib/xero-ruby/models/payroll_au/employment_termination_payment_type.rb
#build_from_hash(value) ⇒ String
Builds the enum from string
30 31 32 33 34 |
# File 'lib/xero-ruby/models/payroll_au/employment_termination_payment_type.rb', line 30 def build_from_hash(value) constantValues = EmploymentTerminationPaymentType.constants.select { |c| EmploymentTerminationPaymentType::const_get(c) == value } raise "Invalid ENUM value #{value} for class #EmploymentTerminationPaymentType" if constantValues.empty? value end |