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