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

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

Overview

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

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`.



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`.

Returns:

  • (String)


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

required :url, String