Class: Anthropic::Models::Beta::UserProfiles::BetaUserProfileActionURL
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::UserProfiles::BetaUserProfileActionURL
- Defined in:
- lib/anthropic/models/beta/user_profiles/beta_user_profile_action_url.rb,
sig/anthropic/models/beta/user_profiles/beta_user_profile_action_url.rbs
Overview
Instance Attribute Summary collapse
-
#expires_at ⇒ Time
When the URL stops working, in RFC 3339 format.
-
#type ⇒ Symbol, :user_profile_action_url
Object type.
-
#url ⇒ String
The URL to give to the person who takes the action.
Instance Method Summary collapse
-
#initialize(expires_at:, url:, type: :user_profile_action_url) ⇒ BetaUserProfileActionURL
constructor
A URL to give to the person who takes the requested action.
- #to_hash ⇒ { expires_at: Time, type: :user_profile_action_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(expires_at:, url:, type: :user_profile_action_url) ⇒ BetaUserProfileActionURL
A URL to give to the person who takes the requested action.
Some parameter documentations has been truncated, see Anthropic::Models::Beta::UserProfiles::BetaUserProfileActionURL for more details.
|
|
# File 'lib/anthropic/models/beta/user_profiles/beta_user_profile_action_url.rb', line 28
|
Instance Attribute Details
#expires_at ⇒ Time
When the URL stops working, in RFC 3339 format.
13 |
# File 'lib/anthropic/models/beta/user_profiles/beta_user_profile_action_url.rb', line 13 required :expires_at, Time |
#type ⇒ Symbol, :user_profile_action_url
Object type. Always user_profile_action_url.
19 |
# File 'lib/anthropic/models/beta/user_profiles/beta_user_profile_action_url.rb', line 19 required :type, const: :user_profile_action_url |
#url ⇒ String
The URL to give to the person who takes the action. Anyone who holds it can open
it until expires_at.
26 |
# File 'lib/anthropic/models/beta/user_profiles/beta_user_profile_action_url.rb', line 26 required :url, String |
Instance Method Details
#to_hash ⇒ { expires_at: Time, type: :user_profile_action_url, url: String }
21 22 23 24 25 |
# File 'sig/anthropic/models/beta/user_profiles/beta_user_profile_action_url.rbs', line 21
def to_hash: -> {
expires_at: Time,
type: :user_profile_action_url,
url: String
}
|