Class: Kombo::Models::Shared::PostAtsCandidatesRequestBodyConsentDecisions
- Inherits:
-
Object
- Object
- Kombo::Models::Shared::PostAtsCandidatesRequestBodyConsentDecisions
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/kombo/models/shared/postatscandidatesrequestbody_consent_decisions.rb
Overview
The consent decisions for the candidate. SmartRecruiters supports two consent models: ‘Single’ (use the ‘SINGLE` key) and ’Separated’ (use ‘SMART_RECRUIT`, `SMART_CRM`, `SMART_MESSAGE_SMS`, and/or `SMART_MESSAGE_WHATSAPP` keys). When this field is provided, it takes precedence over the `gdpr_consent` field for the `consentDecisions` property. See: developers.smartrecruiters.com/docs/partners-post-an-application
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(single: nil, smart_recruit: nil, smart_crm: nil, smart_message_sms: nil, smart_message_whatsapp: nil) ⇒ PostAtsCandidatesRequestBodyConsentDecisions
constructor
A new instance of PostAtsCandidatesRequestBodyConsentDecisions.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(single: nil, smart_recruit: nil, smart_crm: nil, smart_message_sms: nil, smart_message_whatsapp: nil) ⇒ PostAtsCandidatesRequestBodyConsentDecisions
Returns a new instance of PostAtsCandidatesRequestBodyConsentDecisions.
27 28 29 30 31 32 33 |
# File 'lib/kombo/models/shared/postatscandidatesrequestbody_consent_decisions.rb', line 27 def initialize(single: nil, smart_recruit: nil, smart_crm: nil, smart_message_sms: nil, smart_message_whatsapp: nil) @single = single @smart_recruit = smart_recruit @smart_crm = smart_crm @smart_message_sms = @smart_message_whatsapp = end |
Instance Method Details
#==(other) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/kombo/models/shared/postatscandidatesrequestbody_consent_decisions.rb', line 36 def ==(other) return false unless other.is_a? self.class return false unless @single == other.single return false unless @smart_recruit == other.smart_recruit return false unless @smart_crm == other.smart_crm return false unless @smart_message_sms == other. return false unless @smart_message_whatsapp == other. true end |