class XeroRuby::PayrollNz::StatutoryDeductionCategory
Constants
- ADDITIONAL_STUDENT_LOAN
- CHILD_SUPPORT
- COURT_FINES
- INLAND_REVENUE_ARREARS
- KIWI_SAVER
- MSD_REPAYMENTS
- NON_PRIORITY_ORDER
- PRIORITY_ORDER
- STUDENT_LOAN
- TABLE_BASED
- VOLUNTARY_STUDENT_LOAN
Public Class Methods
build_from_hash(value)
click to toggle source
Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value
# File lib/xero-ruby/models/payroll_nz/statutory_deduction_category.rb, line 32 def self.build_from_hash(value) new.build_from_hash(value) end
Public Instance Methods
build_from_hash(value)
click to toggle source
Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value
# File lib/xero-ruby/models/payroll_nz/statutory_deduction_category.rb, line 39 def build_from_hash(value) constantValues = StatutoryDeductionCategory.constants.select { |c| StatutoryDeductionCategory::const_get(c) == value } raise "Invalid ENUM value #{value} for class #StatutoryDeductionCategory" if constantValues.empty? value end