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

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 ⇒ BetaUserProfileEnrollmentURL

Returns a new instance of BetaUserProfileEnrollmentURL.

Parameters:

  • expires_at: (Time)
  • url: (String)
  • type: (:enrollment_url)


16
17
18
19
20
# File 'sig/anthropic/models/beta/beta_user_profile_enrollment_url.rbs', line 16

def initialize: (
  expires_at: Time,
  url: String,
  ?type: :enrollment_url
) -> void

Instance Attribute Details

#expires_at ⇒ Time

When this enrollment URL expires, 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

#type ⇒ Symbol, :enrollment_url

Object type. Always enrollment_url.

Parameters:

  • value (:enrollment_url)

Returns:

  • (Symbol, :enrollment_url)


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

required :type, const: :enrollment_url

#url ⇒ String

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 ⇒ { expires_at: Time, type: :enrollment_url, url: String }

Returns:

  • ({ expires_at: Time, type: :enrollment_url, url: String })


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

def to_hash: -> { expires_at: Time, type: :enrollment_url, url: String }