Class: Privy::Models::OAuthGrant
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Privy::Models::OAuthGrant
- Defined in:
- lib/privy/models/oauth_grant.rb
Defined Under Namespace
Modules: GrantType
Instance Attribute Summary collapse
-
#created_at ⇒ Time
When the grant was first created.
-
#grant_type ⇒ Symbol, Privy::Models::OAuthGrant::GrantType
The OAuth grant type that created this grant.
-
#id ⇒ String
The grant identifier.
-
#last_used_at ⇒ Time
When the grant was last used (e.g. token refreshed).
Instance Method Summary collapse
-
#initialize(id:, created_at:, grant_type:, last_used_at:) ⇒ Object
constructor
An active OAuth grant representing an authorized session.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id:, created_at:, grant_type:, last_used_at:) ⇒ Object
An active OAuth grant representing an authorized session.
|
|
# File 'lib/privy/models/oauth_grant.rb', line 30
|
Instance Attribute Details
#created_at ⇒ Time
When the grant was first created.
16 |
# File 'lib/privy/models/oauth_grant.rb', line 16 required :created_at, Time |
#grant_type ⇒ Symbol, Privy::Models::OAuthGrant::GrantType
The OAuth grant type that created this grant.
22 |
# File 'lib/privy/models/oauth_grant.rb', line 22 required :grant_type, enum: -> { Privy::OAuthGrant::GrantType } |
#id ⇒ String
The grant identifier.
10 |
# File 'lib/privy/models/oauth_grant.rb', line 10 required :id, String |
#last_used_at ⇒ Time
When the grant was last used (e.g. token refreshed).
28 |
# File 'lib/privy/models/oauth_grant.rb', line 28 required :last_used_at, Time |