Module: WorkOS::HashProvider
- Includes:
- Kernel
- Included in:
- AuditLogExport, AuthenticationFactorAndChallenge, AuthenticationResponse, Challenge, Connection, Directory, DirectoryGroup, DirectoryUser, EmailVerification, Event, Factor, Impersonator, Invitation, MagicAuth, Organization, OrganizationMembership, PasswordReset, Profile, ProfileAndToken, RefreshAuthenticationResponse, Role, User, UserAndToken, UserResponse, VerifyChallenge, Webhook
- Defined in:
- lib/workos/hash_provider.rb
Overview
Module to include an explicit method for converting a model into a Hash containing its attributes. Default implementation will simply call to_json. Individual classes may override.
Instance Method Summary collapse
Instance Method Details
#to_h ⇒ Object
14 15 16 |
# File 'lib/workos/hash_provider.rb', line 14 def to_h to_json end |
#to_json ⇒ Object
10 11 12 |
# File 'lib/workos/hash_provider.rb', line 10 def to_json(*) raise 'Must be implemented by including class.' end |