Class: GustoEmbedded::Models::Shared::PeopleBatch
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::PeopleBatch
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/people_batch.rb
Overview
A batch for bulk people creation.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uuid:, idempotency_key:, status:, batch_action:) ⇒ PeopleBatch
constructor
A new instance of PeopleBatch.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(uuid:, idempotency_key:, status:, batch_action:) ⇒ PeopleBatch
Returns a new instance of PeopleBatch.
25 26 27 28 29 30 |
# File 'lib/gusto_embedded/models/shared/people_batch.rb', line 25 def initialize(uuid:, idempotency_key:, status:, batch_action:) @uuid = uuid @idempotency_key = idempotency_key @status = status @batch_action = batch_action end |
Instance Method Details
#==(other) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/gusto_embedded/models/shared/people_batch.rb', line 33 def ==(other) return false unless other.is_a? self.class return false unless @uuid == other.uuid return false unless @idempotency_key == other.idempotency_key return false unless @status == other.status return false unless @batch_action == other.batch_action true end |