Class: Anthropic::Models::Beta::BetaUserProfileEnrollmentURL
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaUserProfileEnrollmentURL
- Defined in:
- lib/anthropic/models/beta/beta_user_profile_enrollment_url.rb,
sig/anthropic/models/beta/beta_user_profile_enrollment_url.rbs
Overview
Instance Attribute Summary collapse
-
#expires_at ⇒ Time
When this enrollment URL expires, in RFC 3339 format.
-
#type ⇒ Symbol, :enrollment_url
Object type.
-
#url ⇒ String
Enrollment URL to send to the end user.
Instance Method Summary collapse
-
#initialize ⇒ BetaUserProfileEnrollmentURL
constructor
A new instance of BetaUserProfileEnrollmentURL.
- #to_hash ⇒ { expires_at: Time, type: :enrollment_url, url: String }
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.
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.
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.
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.
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 }
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 }
|