Class: GustoEmbedded::Shared::UnprocessableEntityErrorObject

Inherits:
Crystalline::FieldAugmented show all
Extended by:
T::Sig
Defined in:
lib/gusto_embedded/models/shared/unprocessable_entity_error_object.rb

Overview

Unprocessable Entity

This may happen when the body of your request contains errors such as ‘invalid_attribute_value`, or the request fails due to an `invalid_operation`. See the [Errors Categories](docs.gusto.com/embedded-payroll/docs/error-categories) guide for more details.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(errors: nil) ⇒ UnprocessableEntityErrorObject

Returns a new instance of UnprocessableEntityErrorObject.



22
23
24
# File 'lib/gusto_embedded/models/shared/unprocessable_entity_error_object.rb', line 22

def initialize(errors: nil)
  @errors = errors
end