Class: GustoEmbedded::Models::Shared::ContributionExclusion
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::ContributionExclusion
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/contribution_exclusion.rb
Overview
The representation of a contribution exclusion for a company benefit.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(contribution_uuid:, contribution_type:, excluded:) ⇒ ContributionExclusion
constructor
A new instance of ContributionExclusion.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(contribution_uuid:, contribution_type:, excluded:) ⇒ ContributionExclusion
Returns a new instance of ContributionExclusion.
23 24 25 26 27 |
# File 'lib/gusto_embedded/models/shared/contribution_exclusion.rb', line 23 def initialize(contribution_uuid:, contribution_type:, excluded:) @contribution_uuid = contribution_uuid @contribution_type = contribution_type @excluded = excluded end |
Instance Method Details
#==(other) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/gusto_embedded/models/shared/contribution_exclusion.rb', line 30 def ==(other) return false unless other.is_a? self.class return false unless @contribution_uuid == other.contribution_uuid return false unless @contribution_type == other.contribution_type return false unless @excluded == other.excluded true end |