Module: Anthropic::Models::Beta::BetaBrowserClickTarget
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/anthropic/models/beta/beta_browser_click_target.rb,
sig/anthropic/models/beta/beta_browser_click_target.rbs
Overview
Where to act: either a viewport coordinate or an element reference.
Defined Under Namespace
Modules: Type
Class Method Summary collapse
-
.new(type:, **args) ⇒ Anthropic::Models::Beta::BetaBrowserCoordinateTarget, Anthropic::Models::Beta::BetaBrowserRefTarget
Creates a new instance of the variant class whose
typematches the given value, passing the remaining arguments to its constructor. - .values ⇒ Array<Symbol>
- .variants ⇒ Array(Anthropic::Models::Beta::BetaBrowserCoordinateTarget, Anthropic::Models::Beta::BetaBrowserRefTarget)
Methods included from Internal::Type::Union
==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Class Method Details
.new(type:, x:, y_:) ⇒ Anthropic::Beta::BetaBrowserCoordinateTarget .new(type:, ref:) ⇒ Anthropic::Beta::BetaBrowserRefTarget .new(type:, x:, y_:, ref:) ⇒ Anthropic::Models::Beta::beta_browser_click_target
Creates a new instance of the variant class whose type matches the given
value, passing the remaining arguments to its constructor.
Some parameter documentations has been truncated, see Anthropic::Models::Beta::BetaBrowserClickTarget for more details.
52 53 54 55 56 57 58 59 60 61 |
# File 'lib/anthropic/models/beta/beta_browser_click_target.rb', line 52 def self.new(type:, **args) case type.to_sym when :coordinate Anthropic::Beta::BetaBrowserCoordinateTarget.new(**args) when :ref Anthropic::Beta::BetaBrowserRefTarget.new(**args) else raise ArgumentError, "unknown type: #{type}" end end |
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/beta/beta_browser_click_target.rb', line 27
|
.variants ⇒ Array(Anthropic::Models::Beta::BetaBrowserCoordinateTarget, Anthropic::Models::Beta::BetaBrowserRefTarget)
|
|
# File 'lib/anthropic/models/beta/beta_browser_click_target.rb', line 31
|