Class: GustoEmbedded::Models::Shared::EmbeddedTimeOffBalance
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::EmbeddedTimeOffBalance
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/embedded_time_off_balance.rb
Overview
Time off balance for an employee, grouped by policy.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(employee_uuid: nil, balances: nil) ⇒ EmbeddedTimeOffBalance
constructor
A new instance of EmbeddedTimeOffBalance.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(employee_uuid: nil, balances: nil) ⇒ EmbeddedTimeOffBalance
Returns a new instance of EmbeddedTimeOffBalance.
21 22 23 24 |
# File 'lib/gusto_embedded/models/shared/embedded_time_off_balance.rb', line 21 def initialize(employee_uuid: nil, balances: nil) @employee_uuid = employee_uuid @balances = balances end |
Instance Method Details
#==(other) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/gusto_embedded/models/shared/embedded_time_off_balance.rb', line 27 def ==(other) return false unless other.is_a? self.class return false unless @employee_uuid == other.employee_uuid return false unless @balances == other.balances true end |