Class: Cerca::Models::ApprovalGrant

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cerca/models/approval_grant.rb

Overview

Defined Under Namespace

Modules: Scope

Instance Attribute Summary collapse

Instance Method Summary collapse

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:, created_by:, expires_at:, grant_key:, scope:) ⇒ Object

Parameters:



# File 'lib/cerca/models/approval_grant.rb', line 37

Instance Attribute Details

#created_atString

Returns:

  • (String)


15
# File 'lib/cerca/models/approval_grant.rb', line 15

required :created_at, String, api_name: :createdAt

#created_byString?

Returns:

  • (String, nil)


20
# File 'lib/cerca/models/approval_grant.rb', line 20

required :created_by, String, api_name: :createdBy, nil?: true

#expires_atString?

Returns:

  • (String, nil)


25
# File 'lib/cerca/models/approval_grant.rb', line 25

required :expires_at, String, api_name: :expiresAt, nil?: true

#grant_keyString

Returns:

  • (String)


30
# File 'lib/cerca/models/approval_grant.rb', line 30

required :grant_key, String, api_name: :grantKey

#idString

Returns:

  • (String)


10
# File 'lib/cerca/models/approval_grant.rb', line 10

required :id, String

#scopeSymbol, Cerca::Models::ApprovalGrant::Scope



35
# File 'lib/cerca/models/approval_grant.rb', line 35

required :scope, enum: -> { Cerca::ApprovalGrant::Scope }