Class: WorkOS::Types::BaseModel
- Inherits:
-
Object
- Object
- WorkOS::Types::BaseModel
- Includes:
- HashProvider
- Defined in:
- lib/workos/types/base_model.rb
Overview
Shared base class for all generated model classes.
Provides:
- HashProvider mixin for to_h / to_json / inspect
- normalize(input) for JSON-vs-hash / string-vs-symbol normalization
Subclasses declare HASH_ATTRS for serialization and implement their own initialize(json) using normalize to parse input.
Direct Known Subclasses
AccessDeniedOAuthErrorBody, AccessTokenAgentRegistrationCredentialIssuedDataDetail, AccountSelectionRequiredError, ActionAuthenticationDenied, ActionAuthenticationDeniedData, ActionDeniedErrorBody, ActionUserRegistrationDenied, ActionUserRegistrationDeniedData, Actor, AddRolePermission, AgentAdminLinkClaimAttemptToExternalUserRequest, AgentAdminLinkClaimAttemptToExternalUserRequestUser, AgentAdminValidateCredentialRequest, AgentBlueprint, AgentBlueprintCreated, AgentBlueprintCreatedData, AgentBlueprintCreatedDataInvocableAs, AgentBlueprintCreatedDataInvocableBy, AgentBlueprintCreatedDataSessionSetting, AgentBlueprintDeleted, AgentBlueprintDeletedData, AgentBlueprintInvocableAs, AgentBlueprintSessionSetting, AgentBlueprintUpdated, AgentBlueprintUpdatedData, AgentBlueprintUpdatedDataInvocableAs, AgentBlueprintsCreateRequest, AgentBlueprintsCreateRequestInvocableAs, AgentBlueprintsCreateRequestInvocableBy, AgentBlueprintsTokenMintTokenRequest, AgentBlueprintsTokenValidateTokenRequest, AgentBlueprintsUpdateRequest, AgentBlueprintsUpdateRequestInvocableAs, AgentBlueprintsUpdateRequestSessionSetting, AgentCredentialValidation, AgentInstance, AgentInstanceCreated, AgentInstanceCreatedData, AgentInstanceDeleted, AgentInstanceDeletedData, AgentInstanceSession, AgentInstanceSessionCreated, AgentInstanceSessionCreatedData, AgentInstanceSessionRevoked, AgentInstanceSessionRevokedData, AgentRegistration, AgentRegistrationAgentIdentity, AgentRegistrationClaim, AgentRegistrationClaimAttemptCreated, AgentRegistrationClaimAttemptCreatedData, AgentRegistrationClaimClaimCompletion, AgentRegistrationClaimCompleted, AgentRegistrationClaimCompletedData, AgentRegistrationClaimCompletedDataClaimedBy, AgentRegistrationCreated, AgentRegistrationCreatedData, AgentRegistrationCreatedDataAgentIdentity, AgentRegistrationCredentialIssued, AgentRegistrationCredentialIssuedData, AgentRegistrationCredentialIssuedDataDetail, AgentRegistrationDeleted, AgentRegistrationDeletedData, AgentRegistrationExpired, AgentRegistrationOrganizationSwitched, AgentRegistrationOrganizationSwitchedData, AgentRegistrationRefreshed, AgentRegistrationRevoked, AgentToken, AgentTokenValidation, AlreadyClaimedErrorBody, ApiKey, ApiKeyCreated, ApiKeyCreatedData, ApiKeyCreatedDataOwner, ApiKeyDataIntegrationVendedCredential, ApiKeyInstallation, ApiKeyRevoked, ApiKeyUpdated, ApiKeyUpdatedData, ApiKeyUpdatedDataPreviousAttribute, ApiKeyValidationResponse, ApplicationConsentRequiredErrorBody, ApplicationCredentialsListItem, AssignRole, AuditLogAction, AuditLogConfiguration, AuditLogConfigurationLogStream, AuditLogEvent, AuditLogEventActor, AuditLogEventContext, AuditLogEventCreateResponse, AuditLogEventIngestion, AuditLogExport, AuditLogExportCreation, AuditLogSchema, AuditLogSchemaActor, AuditLogSchemaInput, AuditLogSchemaTarget, AuditLogsRetention, AuthMethodMismatchError, AuthenticateResponse, AuthenticateResponseImpersonator, AuthenticateResponseOAuthToken, AuthenticationChallenge, AuthenticationChallengeVerifyResponse, AuthenticationChallengesVerifyRequest, AuthenticationEmailVerificationFailed, AuthenticationEmailVerificationFailedData, AuthenticationEmailVerificationFailedDataError, AuthenticationEmailVerificationSucceeded, AuthenticationEmailVerificationSucceededData, AuthenticationFactor, AuthenticationFactorEnrolled, AuthenticationFactorEnrolledSms, AuthenticationFactorEnrolledTotp, AuthenticationFactorTotp, AuthenticationFactorsCreateRequest, AuthenticationMFAFailed, AuthenticationMFAFailedData, AuthenticationMFASucceeded, AuthenticationMFASucceededData, AuthenticationMagicAuthFailed, AuthenticationMagicAuthFailedData, AuthenticationMagicAuthSucceeded, AuthenticationMagicAuthSucceededData, AuthenticationMethodNotAllowedErrorBody, AuthenticationMethodNotAllowedOAuthErrorBody, AuthenticationOAuthFailed, AuthenticationOAuthFailedData, AuthenticationOAuthSucceeded, AuthenticationOAuthSucceededData, AuthenticationPasskeyFailed, AuthenticationPasskeyFailedData, AuthenticationPasskeySucceeded, AuthenticationPasskeySucceededData, AuthenticationPasswordFailed, AuthenticationPasswordFailedData, AuthenticationPasswordSucceeded, AuthenticationPasswordSucceededData, AuthenticationRadarRiskDetected, AuthenticationRadarRiskDetectedData, AuthenticationReauthenticationSucceeded, AuthenticationReauthenticationSucceededData, AuthenticationSSOFailed, AuthenticationSSOFailedData, AuthenticationSSOFailedDataSSO, AuthenticationSSOStarted, AuthenticationSSOStartedData, AuthenticationSSOSucceeded, AuthenticationSSOSucceededData, AuthenticationSSOTimedOut, AuthenticationSSOTimedOutData, AuthkitOAuthResource, AuthorizationCheck, AuthorizationCodeSessionAuthenticateRequest, AuthorizationPendingOAuthErrorBody, AuthorizationPermission, AuthorizationResource, AuthorizationUrlNotFoundErrorBody, AuthorizationUrlRequestErrorBody, AuthorizedConnectApplicationListData, CORSOriginResponse, ChallengeAuthenticationFactor, CheckAuthorization, ClaimViewResponse, ClientApiToken, ClientApiTokenResponse, ClientCredentialsDataIntegrationVendedCredential, CodeChallengeNotFoundErrorBody, ConfigureDataIntegrationBody, ConnectApplication, ConnectApplicationM2M, ConnectApplicationOAuth, ConnectApplicationOAuthRedirectUris, ConnectApplicationRedirectUri, ConnectedAccount, ConnectedAccountInput, ConnectedAccountLimitReachedErrorBody, ConnectedAccountWarning, Connection, ConnectionActivated, ConnectionActivatedData, ConnectionActivatedDataDomain, ConnectionCouldNotBeVerifiedErrorBody, ConnectionCreationConflictErrorBody, ConnectionCreationNotFoundErrorBody, ConnectionDeactivated, ConnectionDeactivatedData, ConnectionDeleted, ConnectionDeletedData, ConnectionFinishErrorBody, ConnectionSAMLCertificateRenewalRequired, ConnectionSAMLCertificateRenewalRequiredData, ConnectionSAMLCertificateRenewalRequiredDataCertificate, ConnectionSAMLCertificateRenewalRequiredDataConnection, ConnectionSAMLCertificateRenewed, ConnectionSAMLCertificateRenewedData, ConnectionSAMLCertificateRenewedDataCertificate, ConnectionTypeNotUpdatableErrorBody, CreateApplicationSecret, CreateAuthkitOAuthResource, CreateAuthorizationPermission, CreateAuthorizationResource, CreateCORSOrigin, CreateConnectedAccount, CreateConnection, CreateConnectionAttributeMaps, CreateConnectionKeyPair, CreateConnectionOIDCOptions, CreateConnectionSAMLOptions, CreateConnectionStandardAttributes, CreateDataIntegration, CreateDataKeyRequest, CreateDataKeyResponse, CreateGroup, CreateGroupMembership, CreateItContact, CreateM2MApplication, CreateMagicCodeAndReturn, CreateOAuthApplication, CreateObjectRequest, CreateOrganizationApiKey, CreateOrganizationConnectedAccount, CreateOrganizationDomain, CreateOrganizationRole, CreatePasswordReset, CreatePasswordResetToken, CreateRedirectUri, CreateSAMLIdpSigningCertificate, CreateTeam, CreateUser, CreateUserApiKey, CreateUserInviteOptions, CreateUserOrganizationMembership, CreateWaitlistEntry, CreateWebhookEndpoint, CustomProviderDefinition, DailyQuotaExceededErrorBody, DataIntegration, DataIntegrationAccessTokenResponse, DataIntegrationAccessTokenResponseAccessToken, DataIntegrationAccessTokenResponseWithAccessToken, DataIntegrationAccessTokenResponseWithError, DataIntegrationAuthorizeUrlResponse, DataIntegrationConfigurationListResponse, DataIntegrationConfigurationResponse, DataIntegrationCredential, DataIntegrationCredentials, DataIntegrationCredentialsInput, DataIntegrationCredentialsResponse, DataIntegrationCredentialsResponseWithCredential, DataIntegrationCredentialsResponseWithError, DataIntegrationCustomProvider, DataIntegrationFinishConnectionResponse, DataIntegrationInstallation, DataIntegrationVendedCredential, DataIntegrationsCreateApiKeyConnectionRequest, DataIntegrationsCreateClientCredentialsConnectionRequest, DataIntegrationsFinishConnectionRequest, DataIntegrationsGetDataIntegrationAuthorizeUrlRequest, DataIntegrationsGetUserTokenRequest, DataIntegrationsListResponse, DataIntegrationsListResponseData, DataIntegrationsListResponseDataConnectedAccount, DataIntegrationsUpsertApiKeyRequest, DataIntegrationsUpsertClientCredentialsRequest, DataIntegrationsVendCredentialsRequest, DecryptRequest, DecryptResponse, DeleteObjectResponse, DeviceAuthorizationResponse, DeviceCodeSessionAuthenticateRequest, Directory, DirectoryGroup, DirectoryMetadata, DirectoryMetadataUser, DirectorySyncRateLimitError, DirectorySyncResponse, DirectoryUser, DirectoryUserEmail, DirectoryUserWithGroups, DsyncActivated, DsyncActivatedData, DsyncActivatedDataDomain, DsyncDeleted, DsyncDeletedData, DsyncGroupCreated, DsyncGroupDeleted, DsyncGroupUpdated, DsyncGroupUpdatedData, DsyncGroupUserAdded, DsyncGroupUserAddedData, DsyncGroupUserRemoved, DsyncTokenCreated, DsyncTokenCreatedData, DsyncTokenRevoked, DsyncUserCreated, DsyncUserDeleted, DsyncUserUpdated, DsyncUserUpdatedData, EmailAlreadyInUseErrorBody, EmailAlreadyVerifiedErrorBody, EmailChange, EmailChangeConfirmation, EmailChangeConfirmationUser, EmailChangeNotAllowedErrorBody, EmailCompletionRequiredErrorBodyWithEmailCompletionToken, EmailCompletionSessionAuthenticateRequest, EmailDomainNotDeliverableErrorBody, EmailNotAvailableErrorBody, EmailPasswordAuthDisabledErrorBody, EmailVerification, EmailVerificationCodeSessionAuthenticateRequest, EmailVerificationCreated, EmailVerificationCreatedData, EmailVerificationRequiredErrorBody, EnrollUserAuthenticationFactor, EntityNotFoundErrorBody, ErrorBodyWithCodeErrors, ErrorBodyWithCodeFieldError, ErrorBodyWithCodeFieldErrors, ErrorBodyWithCodeInstancePathError, ErrorBodyWithCodeInstancePathErrors, ErrorBodyWithCodeStatusCode, ErrorBodyWithConstraintsPropertyError, ErrorBodyWithConstraintsPropertyErrors, ErrorBodyWithError, ErrorBodyWithErrorMessageList, ErrorBodyWithMessageOrMessageList, ErrorResponse, EventContext, EventContextActor, EventContextGoogleAnalyticsSession, EventListListMetadata, EventSchema, ExpireApiKey, ExpiredTokenOAuthErrorBody, ExternalAuthCompleteResponse, ExternalAuthSessionAlreadyCompletedErrorBody, ExternalIdAlreadyUsedErrorBody, ExtraAttributesRequiredOAuthErrorBody, FeatureFlag, FeatureFlagOwner, FeatureFlagsFlagCreated, FeatureFlagsFlagCreatedContext, FeatureFlagsFlagCreatedContextActor, FeatureFlagsFlagCreatedData, FeatureFlagsFlagDeleted, FeatureFlagsFlagDeletedContext, FeatureFlagsFlagDeletedContextActor, FeatureFlagsFlagRuleCreated, FeatureFlagsFlagRuleCreatedContext, FeatureFlagsFlagRuleCreatedContextActor, FeatureFlagsFlagRuleDeleted, FeatureFlagsFlagRuleDeletedContext, FeatureFlagsFlagRuleDeletedContextActor, FeatureFlagsFlagRuleUpdated, FeatureFlagsFlagRuleUpdatedContext, FeatureFlagsFlagRuleUpdatedContextActor, FeatureFlagsFlagRuleUpdatedContextPreviousAttribute, FeatureFlagsFlagRuleUpdatedContextPreviousAttributeData, FeatureFlagsFlagTargetCreated, FeatureFlagsFlagTargetCreatedContext, FeatureFlagsFlagTargetCreatedContextActor, FeatureFlagsFlagTargetDeleted, FeatureFlagsFlagTargetDeletedContext, FeatureFlagsFlagTargetDeletedContextActor, FeatureFlagsFlagUpdated, FeatureFlagsFlagUpdatedContext, FeatureFlagsFlagUpdatedContextActor, FeatureFlagsFlagUpdatedContextPreviousAttribute, FeatureFlagsFlagUpdatedContextPreviousAttributeData, FlagCreated, FlagCreatedContext, FlagCreatedContextActor, FlagDeleted, FlagDeletedContext, FlagDeletedContextActor, FlagRule, FlagRuleUpdated, FlagRuleUpdatedContext, FlagRuleUpdatedContextActor, FlagRuleUpdatedContextConfiguredTarget, FlagRuleUpdatedContextConfiguredTargetUser, FlagRuleUpdatedContextPreviousAttribute, FlagRuleUpdatedContextPreviousAttributeContext, FlagRuleUpdatedContextPreviousAttributeData, FlagTarget, FlagTargetWithRuleId, FlagTargetWithValueType, FlagUpdated, FlagUpdatedContext, FlagUpdatedContextActor, GenerateLink, Group, GroupCreated, GroupDeleted, GroupMemberAdded, GroupMemberAddedData, GroupMemberRemoved, GroupRoleAssignment, GroupRoleAssignmentList, GroupRoleAssignmentResource, GroupUpdated, IdpMetadataFetchFailedErrorBody, InvalidClientOAuthErrorBody, InvalidConnectionOAuthErrorBody, InvalidCredentialsErrorBody, InvalidEmailErrorBody, InvalidGrantOAuthErrorBody, InvalidIdpSSOUrlErrorBody, InvalidLinkAuthorizationCodeOAuthErrorBody, InvalidLocaleErrorBody, InvalidMetadataErrorBody, InvalidOneTimeCodeErrorBody, InvalidOrganizationIdErrorBody, InvalidPasswordHashErrorBody, InvalidPendingAuthenticationTokenErrorBody, InvalidProfileOAuthErrorBody, InvalidRefreshTokenErrorBody, InvalidRequestOAuthErrorBody, InvalidRequestParametersErrorBody, InvalidRequestParametersErrorBodyWithErrors, InvalidRoleErrorBody, InvalidUrlErrorBody, Invitation, InvitationAccepted, InvitationAcceptedData, InvitationCannotBeUsedForEmailOAuthErrorBody, InvitationCreated, InvitationCreatedData, InvitationInvalidOAuthErrorBody, InvitationResent, InvitationResentData, InvitationRevoked, InvitationRevokedData, InviteItContact, ItContact, ItContactList, ItContactListListMetadata, JWTTemplateResponse, JwksResponse, JwksResponseKeys, ListMetadata, MFAChallengeErrorBody, MFAEnrollmentErrorBody, MFAEnrollmentOAuthErrorBody, MFATotpSessionAuthenticateRequest, MagicAuth, MagicAuthCodeSessionAuthenticateRequest, MagicAuthCreated, MagicAuthCreatedData, MagicAuthSendMagicAuthCodeAndReturnResponse, MultipleRolesNotEnabledErrorBody, MustUseSSOForSelectedOrganizationMessageErrorBody, NewConnectApplicationSecret, OAuthDataIntegrationVendedCredential, OAuthErrorBody, ObjectMetadata, ObjectSummary, ObjectVersion, ObjectWithoutValue, OneTimeCodeExpiredErrorBody, OneTimeCodePreviouslyUsedErrorBody, OneTimeCodeTooManyAttemptsErrorBody, Organization, OrganizationApiKey, OrganizationApiKeyWithValue, OrganizationAuthenticationMethodsRequiredOAuthErrorBody, OrganizationAuthorizedConnectApplicationListData, OrganizationConnectedAccount, OrganizationConnectedAccountImportErrorBody, OrganizationCreated, OrganizationCreatedData, OrganizationCreatedDataDomain, OrganizationDeleted, OrganizationDeletedData, OrganizationDeletedDataDomain, OrganizationDomain, OrganizationDomainCreated, OrganizationDomainCreatedData, OrganizationDomainData, OrganizationDomainDeleted, OrganizationDomainDeletedData, OrganizationDomainUpdated, OrganizationDomainUpdatedData, OrganizationDomainVerificationFailed, OrganizationDomainVerificationFailedData, OrganizationDomainVerificationFailedDataOrganizationDomain, OrganizationDomainVerified, OrganizationDomainVerifiedData, OrganizationInput, OrganizationMembership, OrganizationMembershipCreated, OrganizationMembershipCreatedData, OrganizationMembershipDeleted, OrganizationMembershipDeletedData, OrganizationMembershipNotFoundOAuthErrorBody, OrganizationMembershipUpdated, OrganizationMembershipUpdatedData, OrganizationNotFoundOAuthErrorBody, OrganizationRoleCreated, OrganizationRoleCreatedData, OrganizationRoleDeleted, OrganizationRoleUpdated, OrganizationSelectionRequiredErrorBody, OrganizationSelectionRequiredErrorBodyWithOrganizations, OrganizationSelectionSessionAuthenticateRequest, OrganizationUpdated, OrganizationUpdatedData, OrganizationUpdatedDataDomain, PasskeyProgressiveEnrollmentErrorBody, PasswordAndPasswordHashProvidedErrorBody, PasswordAndPasswordHashTypeProvidedErrorBody, PasswordReset, PasswordResetCreated, PasswordResetCreatedData, PasswordResetSucceeded, PasswordSaltPositionRequiresPasswordHashErrorBody, PasswordSessionAuthenticateRequest, PasswordStrengthErrorErrorBodyWithErrors, PatchConnection, PatchConnectionAttributeMaps, PatchConnectionOIDCOptions, PatchConnectionSAMLOptions, PatchGroupMemberships, PatchGroupRoleAssignments, PermissionCreated, PermissionDeleted, PermissionUpdated, PhoneNumberRequiredErrorBody, PipeConnectedAccount, PipesAccountConnectionAddFailed, PipesAccountConnectionAddFailedData, PipesAccountConnectionConnected, PipesAccountConnectionConnectionFailed, PipesAccountConnectionDisconnected, PipesAccountConnectionReauthorizationNeeded, PipesConnectedAccountConnected, PipesConnectedAccountConnectionFailed, PipesConnectedAccountDisconnected, PipesConnectedAccountReauthorizationNeeded, PkceNotSupportedOAuthErrorBody, PolicyDeniedErrorBody, PortalLinkResponse, Profile, RadarChallenge, RadarChallengeCreated, RadarChallengeCreatedData, RadarChallengeErrorBody, RadarEmailChallengeCodeSessionAuthenticateRequest, RadarListEntryAlreadyPresentResponse, RadarSignUpChallengeErrorBody, RadarSmsChallengeCodeSessionAuthenticateRequest, RadarSmsSignInChallengeErrorBody, RadarStandaloneAssessRequest, RadarStandaloneDeleteRadarListEntryRequest, RadarStandaloneResponse, RadarStandaloneUpdateRadarAttemptRequest, RateLimitExceededErrorBodyWithRetryAfter, RedirectUri, RedirectUriInput, RefreshTokenSessionAuthenticateRequest, RekeyRequest, ReplaceGroupRoleAssignments, ResendUserInviteOptions, ResetPasswordResponse, ResourceExportCompleted, ResourceExportCompletedData, ResourceExportCreated, ResourceExportCreatedData, ResourceExportDownloaded, ResourceExportDownloadedData, ResourceExportFailed, ResourceExportFailedData, RevokeLink, RevokeSession, Role, RoleCreated, RoleCreatedData, RoleDeleted, RoleList, RoleUpdated, SAMLIdpSigningCertificate, SAMLIdpSigningCertificateList, SAMLSpEncryptionCertificate, SAMLSpEncryptionCertificateList, SAMLSpSigningCertificate, SSOAuthorizeUrlResponse, SSODeviceAuthorizationRequest, SSOLogoutAuthorizeRequest, SSOLogoutAuthorizeResponse, SSORequiredOAuthErrorBodyWithConnectionIdsListEmailPendingAuthenticationToken, SSOTokenResponse, SendEmailChange, SendRadarSmsChallenge, SendRadarSmsChallengeResponse, SendVerificationEmail, SessionCreated, SessionCreatedData, SessionRevoked, SessionRevokedData, SetRolePermissions, SignUpNotAllowedOAuthErrorBody, SlowDownOAuthErrorBody, SmsChallengeQuotaReachedErrorBody, SmsChallengeRateLimitedErrorBody, SubResourceScopedRoleNotAllowedErrorBodyWithRoleSlug, WorkOS::Team, WorkOS::TokenQuery, WorkOS::TokenTooBigOAuthErrorBody, WorkOS::TooManyFailedVerificationAttemptsErrorBodyWithRetryAfter, WorkOS::TooManyRequestsOAuthErrorBody, UnauthorizedClientOAuthErrorBody, UnauthorizedErrorBody, UpdateAuditLogsRetention, UpdateAuditLogsRetentionWithRetentionPeriod, UpdateAuditLogsRetentionWithRetentionPeriodInDays, UpdateAuthorizationPermission, UpdateAuthorizationResource, UpdateCustomProviderDefinition, UpdateDataIntegration, UpdateJWTTemplate, UpdateOAuthApplication, UpdateObjectRequest, UpdateOrganization, UpdateUser, UpdateUserOrganizationMembership, UpdateUserOrganizationMembershipWithRoleSlug, UpdateUserOrganizationMembershipWithRoleSlugs, UpdateWebhookEndpoint, UserApiKey, UserApiKeyCreatedDataOwner, UserApiKeyWithValue, UserAuthenticationFactorEnrollResponse, UserConnectedAccountImportErrorBody, UserConsentOption, UserConsentOptionChoice, UserConsentOptionsNotSupportedErrorBody, UserCreateResponse, UserCreated, UserCreationErrorErrorBodyWithErrors, UserDeleted, UserIdentitiesGetItem, UserInvite, UserManagementLoginRequest, UserMismatchErrorBody, UserObject, UserOrganizationMembership, UserOrganizationMembershipBaseListData, UserRoleAssignment, UserRoleAssignmentSource, UserSessionsListItem, UserUpdated, ValidateApiKey, VaultByokKeyDeleted, VaultByokKeyDeletedData, VaultByokKeyVerificationCompleted, VaultByokKeyVerificationCompletedData, VaultDataCreated, VaultDataCreatedData, VaultDataDeleted, VaultDataDeletedData, VaultDataRead, VaultDataReadData, VaultDataUpdated, VaultDataUpdatedData, VaultDekDecrypted, VaultDekDecryptedData, VaultDekRead, VaultDekReadData, VaultDekRekeyed, VaultDekRekeyedData, VaultKekCreated, VaultKekCreatedData, VaultKekDeleted, VaultKekDeletedData, VaultMetadataRead, VaultMetadataReadData, VaultNamesListed, VaultNamesListedData, VaultObject, VerificationIdRequiredErrorBody, VersionListResponse, Waitlist, WaitlistEntry, WaitlistListResponse, WaitlistUser, WaitlistUserApproved, WaitlistUserCreated, WaitlistUserDenied, WebhookEndpoint, WidgetSessionToken
Instance Attribute Summary collapse
-
#last_response ⇒ WorkOS::Types::ApiResponse?
The raw HTTP response metadata for this object, if available.
Class Method Summary collapse
-
.normalize(json) ⇒ Hash{Symbol => Object}
Normalize an input value (JSON string or Hash) into a Hash with symbolized keys.
Methods included from HashProvider
Instance Attribute Details
#last_response ⇒ WorkOS::Types::ApiResponse?
The raw HTTP response metadata for this object, if available. Populated automatically by service methods that return models.
22 23 24 |
# File 'lib/workos/types/base_model.rb', line 22 def last_response @last_response end |
Class Method Details
.normalize(json) ⇒ Hash{Symbol => Object}
Normalize an input value (JSON string or Hash) into a Hash with symbolized keys. Safe for already-symbolized hashes (no-op).
29 30 31 32 |
# File 'lib/workos/types/base_model.rb', line 29 def self.normalize(json) hash = json.is_a?(Hash) ? json : JSON.parse(json, symbolize_names: true) hash.transform_keys(&:to_sym) end |