Class: GustoEmbedded::Models::Shared::CompanyCustomField
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::CompanyCustomField
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/company_custom_field.rb
Overview
A custom field on a company
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uuid:, name:, type:, description: nil, selection_options: nil) ⇒ CompanyCustomField
constructor
A new instance of CompanyCustomField.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(uuid:, name:, type:, description: nil, selection_options: nil) ⇒ CompanyCustomField
Returns a new instance of CompanyCustomField.
27 28 29 30 31 32 33 |
# File 'lib/gusto_embedded/models/shared/company_custom_field.rb', line 27 def initialize(uuid:, name:, type:, description: nil, selection_options: nil) @uuid = uuid @name = name @type = type @description = description @selection_options = end |
Instance Method Details
#==(other) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/gusto_embedded/models/shared/company_custom_field.rb', line 36 def ==(other) return false unless other.is_a? self.class return false unless @uuid == other.uuid return false unless @name == other.name return false unless @type == other.type return false unless @description == other.description return false unless @selection_options == other. true end |