Class: GustoEmbedded::Models::Shared::EmployeeStateTaxQuestion
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::EmployeeStateTaxQuestion
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/employee_state_tax_question.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(label:, key:, is_question_for_admin_only:, input_question_format:, answers:, description: nil) ⇒ EmployeeStateTaxQuestion
constructor
A new instance of EmployeeStateTaxQuestion.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(label:, key:, is_question_for_admin_only:, input_question_format:, answers:, description: nil) ⇒ EmployeeStateTaxQuestion
Returns a new instance of EmployeeStateTaxQuestion.
29 30 31 32 33 34 35 36 |
# File 'lib/gusto_embedded/models/shared/employee_state_tax_question.rb', line 29 def initialize(label:, key:, is_question_for_admin_only:, input_question_format:, answers:, description: nil) @label = label @key = key @is_question_for_admin_only = is_question_for_admin_only @input_question_format = input_question_format @answers = answers @description = description end |
Instance Method Details
#==(other) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/gusto_embedded/models/shared/employee_state_tax_question.rb', line 39 def ==(other) return false unless other.is_a? self.class return false unless @label == other.label return false unless @key == other.key return false unless @is_question_for_admin_only == other.is_question_for_admin_only return false unless @input_question_format == other.input_question_format return false unless @answers == other.answers return false unless @description == other.description true end |