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