Class: GustoEmbedded::Models::Shared::EmployeeCustomFieldList
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::EmployeeCustomFieldList
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/employee_custom_field_list.rb
Overview
A list of an employee’s custom fields
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(custom_fields: nil) ⇒ EmployeeCustomFieldList
constructor
A new instance of EmployeeCustomFieldList.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(custom_fields: nil) ⇒ EmployeeCustomFieldList
Returns a new instance of EmployeeCustomFieldList.
19 20 21 |
# File 'lib/gusto_embedded/models/shared/employee_custom_field_list.rb', line 19 def initialize(custom_fields: nil) @custom_fields = custom_fields end |
Instance Method Details
#==(other) ⇒ Object
24 25 26 27 28 |
# File 'lib/gusto_embedded/models/shared/employee_custom_field_list.rb', line 24 def ==(other) return false unless other.is_a? self.class return false unless @custom_fields == other.custom_fields true end |