Class: Anthropic::Models::Beta::BetaUserProfileEnrollmentURL

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_user_profile_enrollment_url.rb,
sig/anthropic/models/beta/beta_user_profile_enrollment_url.rbs

Overview

See Also:

  • Anthropic::Resources::Beta::UserProfiles#create_enrollment_url

Defined Under Namespace

Modules: Type

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(expires_at:, type:, url:) ⇒ Object

Parameters:



# File 'lib/anthropic/models/beta/beta_user_profile_enrollment_url.rb', line 26

Instance Attribute Details

#expires_atTime

A timestamp in RFC 3339 format

Parameters:

  • value (Time)

Returns:

  • (Time)


12
# File 'lib/anthropic/models/beta/beta_user_profile_enrollment_url.rb', line 12

required :expires_at, Time

#typeSymbol, Anthropic::Models::Beta::BetaUserProfileEnrollmentURL::Type

Object type. Always enrollment_url.

Parameters:

  • value (Anthropic::Models::Beta::BetaUserProfileEnrollmentURL::type_)

Returns:



18
# File 'lib/anthropic/models/beta/beta_user_profile_enrollment_url.rb', line 18

required :type, enum: -> { Anthropic::Beta::BetaUserProfileEnrollmentURL::Type }

#urlString

Enrollment URL to send to the end user. Valid until expires_at.

Parameters:

  • value (String)

Returns:

  • (String)


24
# File 'lib/anthropic/models/beta/beta_user_profile_enrollment_url.rb', line 24

required :url, String

Instance Method Details

#to_hash{

Returns:

  • ({)


26
# File 'sig/anthropic/models/beta/beta_user_profile_enrollment_url.rbs', line 26

def to_hash: -> {