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