Class: GustoEmbedded::Models::Shared::EmployeeCustomField
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::EmployeeCustomField
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/employee_custom_field.rb
Overview
A custom field of an employee
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(id:, company_custom_field_id:, name:, type:, value:, description: nil, selection_options: nil) ⇒ EmployeeCustomField
constructor
A new instance of EmployeeCustomField.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(id:, company_custom_field_id:, name:, type:, value:, description: nil, selection_options: nil) ⇒ EmployeeCustomField
Returns a new instance of EmployeeCustomField.
31 32 33 34 35 36 37 38 39 |
# File 'lib/gusto_embedded/models/shared/employee_custom_field.rb', line 31 def initialize(id:, company_custom_field_id:, name:, type:, value:, description: nil, selection_options: nil) @id = id @company_custom_field_id = company_custom_field_id @name = name @type = type @value = value @description = description @selection_options = end |
Instance Method Details
#==(other) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/gusto_embedded/models/shared/employee_custom_field.rb', line 42 def ==(other) return false unless other.is_a? self.class return false unless @id == other.id return false unless @company_custom_field_id == other.company_custom_field_id return false unless @name == other.name return false unless @type == other.type return false unless @value == other.value return false unless @description == other.description return false unless @selection_options == other. true end |