Class: Kombo::Models::Shared::PostAtsCandidatesRequestBodyGdprConsent
- Inherits:
-
Object
- Object
- Kombo::Models::Shared::PostAtsCandidatesRequestBodyGdprConsent
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/kombo/models/shared/postatscandidatesrequestbody_gdpr_consent.rb
Overview
Optional GDPR consent information required in some jurisdictions (like the Czech Republic or Slovakia).
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(expires_at: nil, given: nil) ⇒ PostAtsCandidatesRequestBodyGdprConsent
constructor
A new instance of PostAtsCandidatesRequestBodyGdprConsent.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(expires_at: nil, given: nil) ⇒ PostAtsCandidatesRequestBodyGdprConsent
Returns a new instance of PostAtsCandidatesRequestBodyGdprConsent.
22 23 24 25 |
# File 'lib/kombo/models/shared/postatscandidatesrequestbody_gdpr_consent.rb', line 22 def initialize(expires_at: nil, given: nil) @expires_at = expires_at @given = given end |
Instance Method Details
#==(other) ⇒ Object
28 29 30 31 32 33 |
# File 'lib/kombo/models/shared/postatscandidatesrequestbody_gdpr_consent.rb', line 28 def ==(other) return false unless other.is_a? self.class return false unless @expires_at == other.expires_at return false unless @given == other.given true end |