Class: Kombo::Models::Shared::Prehire
- Inherits:
-
Object
- Object
- Kombo::Models::Shared::Prehire
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/kombo/models/shared/prehire.rb
Overview
An object containing the temporary pre-hire information from the remote system. This ID may change or become invalid when the pre-hire becomes a full employee. Only populated when ‘id` is null.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(remote_id: nil) ⇒ Prehire
constructor
A new instance of Prehire.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(remote_id: nil) ⇒ Prehire
Returns a new instance of Prehire.
19 20 21 |
# File 'lib/kombo/models/shared/prehire.rb', line 19 def initialize(remote_id: nil) @remote_id = remote_id end |
Instance Method Details
#==(other) ⇒ Object
24 25 26 27 28 |
# File 'lib/kombo/models/shared/prehire.rb', line 24 def ==(other) return false unless other.is_a? self.class return false unless @remote_id == other.remote_id true end |